摘要: 1、python基础 2、linux、mysql 3、前端 css、js、html 4、后端开发 django 实验楼 https://www.shiyanlou.com/ 免费学习linux、mysql 阅读全文
posted @ 2019-12-14 16:44 琳淼 阅读(251) 评论(0) 推荐(0) 编辑
摘要: python中 openpyxl是解析 excel 文件的模块,一般使用pip install openpyxl 就可以安装。 但是如果处于公司内网时是无法连网安装的,下面就手动安装进行说明: 1.https://pypi.org/,到这个网站下载所需要安装的模块文件,在侧边栏Download fi 阅读全文
posted @ 2019-12-14 16:31 琳淼 阅读(2013) 评论(0) 推荐(1) 编辑
摘要: #获取qq群中的群成员qq号import requestsmembers = []url = 'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members'data = {'gc':93056308,'st':0,'end':20,'sort':0 阅读全文
posted @ 2019-11-24 21:09 琳淼 阅读(199) 评论(0) 推荐(0) 编辑
摘要: print(round(x,2))#设置小数保留小数点后的位数#双色球彩票#"双色球"每注投注号码由6个红色球号码和1个蓝色球号码组成。# 红色球号码从1--33中选择;蓝色球号码从1--16中选择。def ssq(x): number = input('请输入你要机选几注彩票:') for i i 阅读全文
posted @ 2019-11-24 16:06 琳淼 阅读(189) 评论(0) 推荐(0) 编辑
摘要: # 注册:# 1、账号、密码存到文件# 2、判断输入是否为空# 3、校验用户是否存在# 4、用户名和密码长度在6-12位之间#将文件读取到字典中def get_users(): f = open('1.txt', 'r', encoding='UTF-8') user = {} f.seek(0) 阅读全文
posted @ 2019-11-16 17:37 琳淼 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #函数def welcome(): print('欢迎你')welcome()def write_file(file_name,cotent): f = open(file_name,'a+',encoding='UTF-8') f.write(cotent) f.seek(0) x = f.rea 阅读全文
posted @ 2019-11-16 11:12 琳淼 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #设置一个变量f为文件对象,并打开文件#写文件#f = open('user.txt','w',encoding='utf-8') #f是一个文件对象f=open(r'c:\Users\PL\Desktop\user.txt','w',encoding='UTF-8')f.write('today 阅读全文
posted @ 2019-11-09 14:11 琳淼 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: list = ['xiaoli','xiaohua','huali']user = {'zhang':'123','lin':'321','chen':'222'}#list循环for stu in list: print('循环的值',stu)#字典循环for stu in user: sql = 阅读全文
posted @ 2019-11-02 19:39 琳淼 阅读(506) 评论(0) 推荐(0) 编辑
摘要: #多维数组list = [[87,57,98],[34,87,90]]print(list[1][0])l = [[87,57,98],[34,87,[90,99,67]]]print(l[1][2][1])#字典 key-valueflightplan = {'flight':'2019-10-2 阅读全文
posted @ 2019-10-27 10:46 琳淼 阅读(750) 评论(0) 推荐(0) 编辑
摘要: #list #列表 python中 数组、array等都用列表 list表示#创建一个liststu = ['xiaoming','xiaoli','xiaohuang','alex','lily','爱丽丝','爱丽丝','爱丽丝']#输出列表print(stu)#输出列表中的某一个元素print 阅读全文
posted @ 2019-08-23 09:17 琳淼 阅读(292) 评论(0) 推荐(0) 编辑