摘要: 阅读全文
posted @ 2021-03-10 14:45 Daniel_yan_0728 阅读(22) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python import xlrd import pymysql try: db = pymysql.connect( host = 'localhost', port = 3306, user= 'root', password = '123456', db = ' 阅读全文
posted @ 2020-06-17 15:14 Daniel_yan_0728 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; StringBuilder generater = new StringBuilder(); int sex=0; // 1为男 0 为女 int age=1979; //1979为大于18岁 2000小于18岁 Map areaCode = new Hash 阅读全文
posted @ 2020-05-22 16:51 Daniel_yan_0728 阅读(1771) 评论(0) 推荐(1) 编辑
摘要: #!/usr/bin/env python """ @author:闫学雷 @project:学习 @file: connectMysql.py @time:2020/1/19 0019 """ import pymysql try: db = pymysql.connect( host = 'lo 阅读全文
posted @ 2020-05-22 11:43 Daniel_yan_0728 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python3 2 import random 3 4 # 从"身份证地址对照表.txt"读取地址码和对应的地址,保存为字典 5 def createIDaddress(file): 6 D = [] 7 for line in open(file): 8 if not l 阅读全文
posted @ 2019-08-20 23:09 Daniel_yan_0728 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 from datetime import date 3 from datetime import timedelta 4 5 6 class fourEl(): 7 8 def __init__(self,sex): 9 self.sex = sex 10 11 阅读全文
posted @ 2019-08-20 23:05 Daniel_yan_0728 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 def shoot(fs = 0,i = 0,j = 0): 3 while i < 5: 4 print("<<<<<<<<<<<<<<<<<<开始游戏,游戏5局三胜制>>>>>>>>>>>>>>>>>>>>>>") 5 门将扑球方向 = random.choi 阅读全文
posted @ 2017-01-06 11:34 Daniel_yan_0728 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1 # 需要在python3上执行 2 import random 3 # “Test” 是 account_login函数 的文件名字 4 from Test import account_login 5 # import Test 6 7 def game (capital = 1000): 8 阅读全文
posted @ 2016-12-29 16:26 Daniel_yan_0728 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 def Seach_Phone_Nmuber_operator(): 2 CN_mobile = [134,135,136,137,138,139,150,151,152,157,158,159,182,183,184,187,188,147,178,1705] 3 CN_union = [13 阅读全文
posted @ 2016-12-29 15:25 Daniel_yan_0728 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 # 需要在python3上执行 2 import random 3 def game (capital = 1000): 4 point1 = random.randrange(1,7) 5 point2 = random.randrange(1,7) 6 point3 = random.ran 阅读全文
posted @ 2016-12-28 17:05 Daniel_yan_0728 阅读(1120) 评论(0) 推荐(0) 编辑