2018年8月6日

python IO编程

摘要: 1 #IO.py 2 import sys, os 3 #f=open('/python_workspace/IO/readme', 'r') 4 5 #print(f) 6 #sys.exit() 7 #print(f.read()) 8 9 #print(os.system('dir')) 10 11 ''' 12 f1=open('hello... 阅读全文

posted @ 2018-08-06 17:00 mofei004 阅读(162) 评论(0) 推荐(0) 编辑

python 错误、调试和测试

摘要: 错误信息打印: 1 ''' 2 Created on 2018年7月28日 3 @filename: error_info.py 4 @author: liupf 5 ''' 6 ''' 7 try: 8 print('try...') 9 r = 10 / 1#int('a') 10 print( 阅读全文

posted @ 2018-08-06 12:53 mofei004 阅读(136) 评论(0) 推荐(0) 编辑

导航