文章分类 -  Python 作业

摘要:PyInstaller是一个能将Python程序转换成单个可执行文件的程序, 操作系统支持Windows, Linux, Mac OS X, Solaris和AIX。并且很多包都支持开箱即用,不依赖环境。 一、导航到Python pip文件路径,运行命令:pip.exe install PyInst 阅读全文
posted @ 2016-11-17 23:10 Vincen_shen 阅读(302) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-11-14 23:16 Vincen_shen 阅读(5) 评论(1) 推荐(0)
摘要:1 import collections,re 2 haproxy = 'haproxy.txt' 3 4 def backend_list_show(haproxy): 5 backend_list,backend_name_dic = backend_read(haproxy) 6 print('Backend Server List'.center... 阅读全文
posted @ 2016-11-03 09:25 Vincen_shen 阅读(194) 评论(0) 推荐(0)
摘要:shopping2(主要使用字典进行存储) 1 #################购物车##################### 2 def _inquiry(): 3 with open("dict_goods.txt") as file: 4 _dict = dict(eval(file.re 阅读全文
posted @ 2016-10-28 17:34 Vincen_shen 阅读(152) 评论(0) 推荐(0)
摘要:####################################### Task Name: 经典三级菜单# Description: 打印省、市、县三级菜单# 输入b可返回上一层# 输入q可以退出程序# Author: Vincen Shen######################## 阅读全文
posted @ 2016-10-28 11:30 Vincen_shen 阅读(329) 评论(0) 推荐(0)
摘要:1 def print_list(): # 打印商品清单,并返回商品清单 2 with open("goods.txt", 'r') as file: 3 str1 = file.read() 4 list_goods = str1.split('\n') 5 for index, i in enu 阅读全文
posted @ 2016-10-28 11:25 Vincen_shen 阅读(179) 评论(0) 推荐(0)