Contents
-------------------------------------------------------------------------------------------------------------------------------------始于2019年7月份
书籍阅读相关惑与得
英文版:在网盘中.
-
《Python编程从入门到实践》第11章 测试代码使用书中推荐的Geany运行11.1.2节的代码结果与在pycharm中不一致.
参考:关于PyCharm中Python测试不是run_testname 而是run_unittest_in_testname 的问题 -
Python编程从入门到实践》 第16.2.6节 btc_cllose_2017.py中,def draw_line函数.
y_list=[v for _,v in y]
相当于,
y_list=[]
for _,v in y:
y_list.append(v)
ref:https://blog.youkuaiyun.com/dengpeiyi2012/article/details/90767789
3. 17.2.3节,python_repos.py出现如下报错:
ref:pygal制图“AttributeError: ‘NoneType’ object has no attribute ‘decode’
Traceback (most recent call last):
File "C:/Users/vivi01.zhu/PycharmProjects/untitled2/python_repos.py", line 32, in <module>
chart.render_to_file('python_repos.svg')
File "C:\Python27\lib\site-packages\pygal\graph\public.py", line 114, in render_to_file
f.write(self.render(is_unicode=True, **kwargs))
File "C:\Python27\lib\site-packages\pygal\graph\public.py", line 52, in render
self.setup(**kwargs)
File "C:\Python27\lib\site-packages\pygal\graph\base.py", line 217, in setup
self._draw()
File "C:\Python27\lib\site-packages\pygal\graph\graph.py", line 933, in _draw
self._plot()
File "C:\Python27\lib\site-packages\pygal\graph\bar.py", line 146, in _plot
self.bar(serie)
File "C:\Python27\lib\site-packages\pygal\graph\bar.py", line 116, in bar
metadata)
File "C:\Python2