11 2019 档案
摘要:import csv,re#打开wsx.csv文件,为了后面写入做准备with open("wsx.csv", "w", encoding="utf-8", newline='') as w: #newline='',这个参数的作用是防止生成的csv隔一行空一行,如果没有这个参数,csv文件汇总就会
阅读全文
摘要:import remobile = '18312423454'MOBILE = "^1[358]\d{9}$|^147\d{8}$|^179\d{8}$"p = re.compile(MOBILE)if p.match(mobile): print(mobile)
阅读全文
摘要:设置代理ip(电脑ip+端口号),用苹果自带浏览器safari访问chls.pro/ssl, 手机设置→通用→描述文件→ 手机设置→通用→关于本机→证书信任设置→
阅读全文
摘要:alter table yjp_app_tokon add status int(2) comment '账号轮询,一天换一个账号' after mcht_id; 说明:alter table + 表名 + add + 要添加的字段 + 字段类型 + comment "0盈利,1亏损" + afte
阅读全文
摘要:def fact(x): if x == 1: return 1 else: return x * fact(x-1)
阅读全文
摘要:-- 查询所有学生的姓名和性别(条件运算) select stuname as 姓名, case stusex when 1 then '男' else '女' end as 性别 from tb_student; select stuname as 姓名, if(stusex, '男', '女')
阅读全文
摘要:# coding:gbk
阅读全文