会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
★技术改变世界★
2014年5月14日
python open file
摘要: #!/usr/bin/env pythonfilename = raw_input('Enter file nameL: ')fobj = open(filename,'r')for i in fobj: print i fobj.close()
阅读全文
posted @ 2014-05-14 15:38 终极记忆
阅读(150)
评论(0)
推荐(0)
python try 函数
摘要: #!/usr/bin/env pythonfilename = ''while 1: filename = raw_input("Please input filename: ") if filename == 'q': break try: f = open(filename,"...
阅读全文
posted @ 2014-05-14 14:34 终极记忆
阅读(1609)
评论(0)
推荐(0)
python string
摘要: #!/usr/bin/env pythonimport timeimport stringfrom string import lowercasefrom time import sleepa = 1for k in lowercase: print a,k sleep(1) a=a+1
阅读全文
posted @ 2014-05-14 13:46 终极记忆
阅读(112)
评论(0)
推荐(0)
Python练习题
摘要: #!/usr/bin/env pythonimport timeimport stringfrom string import lowercasefrom time import sleepa = 1for k in lowercase: print a,k sleep(1) a=a+1
阅读全文
posted @ 2014-05-14 13:43 终极记忆
阅读(63)
评论(0)
推荐(0)
导航
管理