摘要: # Listing_10-1.py # Copyright Warren Sande, 2009 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version 61 # Very s 阅读全文
posted @ 2019-07-17 18:46 明月丶 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1、文件的操作 # Author: wang cheng hua # data = open('后来',encoding='utf-8').read() # f = open('后来','r',encoding='utf-8')# 文件句柄 # print(f.read()) ''' f = ope 阅读全文
posted @ 2019-05-20 16:57 明月丶 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 集合的使用 # Author: wang cheng hua list_1 = [1,3,5,7,8,4,5,8,9] list_1 = set(list_1) list_2 = [4,6,8,9,22,33] list_2 = set(list_2) list_3 =[3,5,7] list_3 阅读全文
posted @ 2019-05-20 14:31 明月丶 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1、老男孩购物车代码 2、老男孩购物车代码第二部分: 3、购物车程序练习 阅读全文
posted @ 2019-05-16 16:21 明月丶 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、.Pyc是什么文件 编译后的文件,Python可以直接运行,(先编译后执行),在Python 程序运行的时候,编译后的结果保存到位于内存的PyCodeObject 当中,当Python程序执行结束后,Py解释器将PyCodeObject内容写回到.pyc文件中。当Python第二次运行时,会先检 阅读全文
posted @ 2019-05-16 11:39 明月丶 阅读(124) 评论(0) 推荐(0) 编辑