摘要:
#-*- coding:utf-8 -*- #Author:'Lmc' #DATE: 2019/4/28/0028 上午 11:22:47 #FileName:test.PY import pymysql #导入连接mysql数据库模块 import pandas #导入pandas模块,数据导入及整理模块 #创建并初始化列表,保存取出的mysql数据 id = [] project_id ... 阅读全文
摘要:
#-*- coding:utf-8 -*- #Author:'Lmc' #DATE: 2019/4/24/0024 上午 9:10:57 #FileName:微信号.PY #厄拉多塞质数筛选法 def eladuosai(n): l = list(range(1, n + 1)) l[0] = 0 for i in range(2,n + 1): ... 阅读全文
摘要:
#-*- coding:utf-8 -*- #Author:'Lmc' #DATE: 2019/4/16/0016 下午 3:04:27 #FileName:几种数据结构比较.PY marx_list = ['aaa','bbb','vvv'] #列表 marx_tuple = 'aaa','bbb','vvv','aaa' #元组 marx_dict = { 'aaa':... 阅读全文
摘要:
1 -*- coding:utf-8 -*- 2 #Author:'Lmc' 3 #DATE: 2019/4/23/0023 下午 4:23:08 4 #FileName:tem_compare_gui.PY 5 import easygui 6 string = '' #初始化 7 8 def tem_compare(string): 9 string = easy... 阅读全文