python写文件
摘要:1 from time import sleep 2 myfile = open(r'C:\Users\Administrator\Desktop\1.txt','w')#默认的打开权限就是r 3 #read->r 4 #write->w 5 #binary->b 6 myfile.write('abcabcabcabcabcabc\n') 7 myfile.write('----...
阅读全文
posted @
2016-09-15 00:39
enet01
阅读(100)
推荐(0)
python函数嵌套函数
摘要:def func(): print("helloworld") global func1 def func1(): print("hello world") func() func1() 执行: hello heloTraceback (most recent call last): File "C
阅读全文
posted @
2016-09-15 00:18
enet01
阅读(106)
推荐(0)