摘要: #!/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 阅读(164) 评论(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 阅读(1388) 评论(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 阅读(444) 评论(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 阅读(377) 评论(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 阅读(168) 评论(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 阅读(1152) 评论(0) 推荐(0)
摘要: 模拟器分辨率收集QVGA = 320 * 240; WQVGA = 320 * 480; WQVGA2 = 400 * 240; WQVGA3 = 432 * 240; HVGA = 480 * 320; VGA = 640 * 480; WVGA = 800 * 480; WVGA2 = 768 阅读全文
posted @ 2016-12-16 10:47 Daniel_yan_0728 阅读(334) 评论(0) 推荐(0)