文章分类 -  Python学习手册

摘要:#!/usr/bin/python#Filename: backup_verl.pyimport osimport timesource = ['c:/resource','c:/target']target_dir = '/mnt/e/backup/'target = target_dir +ti 阅读全文
posted @ 2016-06-21 10:54 ~乖乖~ 阅读(167) 评论(0) 推荐(0)
摘要:元组 圆括号包裹 () age =22name = 'Swaroop'test = 'test'print '%s is %d years old'%(name,age)print '%s is %d years old %s'%(name,age,test)print 'Why is %s pla 阅读全文
posted @ 2016-06-15 15:05 ~乖乖~ 阅读(99) 评论(0) 推荐(0)
摘要:IF语句 #!/usr/bin/python#Filename e:break.pynumber =23guess = int(raw_input('Enter an interger:'))if guess == number: print 'Congratulations, you guesse 阅读全文
posted @ 2016-06-14 11:43 ~乖乖~ 阅读(144) 评论(0) 推荐(0)
摘要:r+: Open for reading and writing. The stream is positioned at the beginning of the file. w+:Open for reading and writing. The file is created if it do 阅读全文
posted @ 2016-05-31 10:49 ~乖乖~ 阅读(113) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-05-27 14:34 ~乖乖~ 阅读(78) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-05-27 14:12 ~乖乖~ 阅读(73) 评论(0) 推荐(0)
摘要:在Windows下要运行python,需要添加环境变量,后,在cmd窗口 中运行 阅读全文
posted @ 2016-05-27 13:55 ~乖乖~ 阅读(125) 评论(0) 推荐(0)
摘要:下载地址: https://www.python.org/downloads/release/python-351/ 阅读全文
posted @ 2016-05-27 13:47 ~乖乖~ 阅读(156) 评论(0) 推荐(0)