学习《简明Python教程》
2016.9.28开始看这本简单的小册子。
火车上学习了电子书的前边9章。
10.5学习书上的源代码。
- 在学习第6.2 while.py范例的时候,
sublime报错
EOFError: EOF when reading a line
原因是Sublime不支持,输入。问题解决贴:
http://www.crifan.com/python_sublime_text_2_eoferror_eof_when_reading_a_line/
学习语言,问题要新人的命。踏遍坑无数,那人却在灯火阑珊处。
2. 范例12.1文件
在print语句上使用逗号来消除换行。
3.数字转成字符串,使用格式化字符串:
如
tt=322
tem=’%d’ %tt
tem即为tt转换成的字符串