资源简介

reinforcement-learning-an-introduction-master2018第二版配套书各个章节源代码

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-
import pickle
my_list = [1233.14‘尘封‘[‘another list‘]]
pickle_file = open(‘my_list.pkl‘‘wb‘)
pickle.dump(my_listpickle_file)   #dump():把my_list的数据放到pickle_file文件内
pickle_file.close()
#把写入硬盘的数据在读取出来(用到load函数)
pickle_file = open(‘my_list.pkl‘‘rb‘)
my_list2 = pickle.load(pickle_file)
print(my_list2)
#[123 3.14 ‘尘封‘ [‘another list‘]]

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\
     文件          40  2019-01-23 04:49  reinforcement-learning-an-introduction-master\.gitignore
     文件         148  2019-01-23 04:49  reinforcement-learning-an-introduction-master\.travis.yml
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter01\
     文件          55  2019-04-10 21:17  reinforcement-learning-an-introduction-master\chapter01\my_list.pkl
     文件         445  2019-04-10 21:17  reinforcement-learning-an-introduction-master\chapter01\pickletest.py
     文件       63440  2020-01-27 14:50  reinforcement-learning-an-introduction-master\chapter01\policy_first.bin
     文件       61270  2020-01-27 14:50  reinforcement-learning-an-introduction-master\chapter01\policy_second.bin
     文件       11403  2020-01-28 16:18  reinforcement-learning-an-introduction-master\chapter01\tic_tac_toe.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter02\
     文件       22357  2019-04-11 15:18  reinforcement-learning-an-introduction-master\chapter02\figure_2_1.jpg
     文件        9254  2019-04-11 15:17  reinforcement-learning-an-introduction-master\chapter02\ten_armed_testbed.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter03\
     文件        3808  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter03\grid_world.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter04\
     文件        7391  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter04\car_rental.py
     文件        2445  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter04\gamblers_problem.py
     文件        3436  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter04\grid_world.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter05\
     文件       13167  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter05\blackjack.py
     文件        1814  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter05\infinite_variance.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter06\
     文件        9355  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter06\cliff_walking.py
     文件        4269  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter06\maximization_bias.py
     文件        6574  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter06\random_walk.py
     文件        4018  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter06\windy_grid_world.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter07\
     文件        4249  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter07\random_walk.py
     目录           0  2019-06-17 10:46  reinforcement-learning-an-introduction-master\chapter08\
     文件        1627  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter08\expectation_vs_sample.py
     文件       23252  2019-01-23 04:49  reinforcement-learning-an-introduction-master\chapter08\maze.py
............此处省略67个文件信息

评论

共有 条评论