摘要: 1 #!/usr/bin/env python 2 #coding:utf-8 3 4 def test1(): 5 "test1 ok" 6 print(' in the test1') 7 8 test1() 9 10 11 def test2(): 12 print('aa') 13 return 0 14 15 16 x=te... 阅读全文
posted @ 2017-02-14 16:58 alston-lee 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 #coding:utf-8 3 4 filename="yesterday" 5 #文件句柄 6 # r读 7 # w写 8 # a追加 aappend 9 #r+ 读写 10 #w+ 写读 11 #rb 以二进制格式读 12 #wb 二进制写 13 f=open(filename,'r',encoding='utf-8'... 阅读全文
posted @ 2017-02-14 13:12 alston-lee 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 集合 阅读全文
posted @ 2017-02-14 10:11 alston-lee 阅读(124) 评论(0) 推荐(0) 编辑