上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: mylist = ["a","a","b","c","c","c","d","d","d","d","e","f"] length = len(mylist) print(length) i = 0 while i < length: times = 1 passwordstr = mylist[i] while i < length-1: if 阅读全文
posted @ 2018-07-17 08:55 睡觉了嘛 阅读(94) 评论(0) 推荐(0) 编辑
摘要: import pickle mylist=[[1,2,3,4,5,6,7],["abc","xyz","hello"],[1,2,3,4,5,6,7,"我"]] file=open(r"G:\我的python\尹成\python基础\day11\文件读写\list.bin","wb") pickle.dump(mylist,file) # 保存list到文件 file.close() myl... 阅读全文
posted @ 2018-07-06 15:10 睡觉了嘛 阅读(127) 评论(0) 推荐(0) 编辑
摘要: import codecs """ file = codecs.open(r"路径","rb","gbk","ignore") for line in file: # 硬盘模式 print(line) file.close() """ def loadata(): global datalist # 引用全局变量 把加载的内容放到全局变量中 file = codecs.... 阅读全文
posted @ 2018-07-06 14:31 睡觉了嘛 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import win32con import win32api import time win32api.SetCursorPos([30,30]) # 设置鼠标位置 time.sleep(0.1) # win32con.MOUSEEVENTF_RIGHTDOWN 右边鼠标按下 # win32con.MOUSEEVENTF_RIGHTDUP 右边鼠标抬起 win32api.mouse_e... 阅读全文
posted @ 2018-07-04 12:25 睡觉了嘛 阅读(150) 评论(0) 推荐(0) 编辑
摘要: from win32com.client import constants import os import win32com.client import pythoncom import win32api import win32con class SpeechRecognition: def __init__(self, wordsToAdd): self.speak... 阅读全文
posted @ 2018-07-04 10:32 睡觉了嘛 阅读(155) 评论(0) 推荐(0) 编辑
摘要: from win32com.client import constants import os import win32com.client import pythoncom # 全局变量 speaker = win32com.client.Dispatch("SAPI.SPVOICE") class SpeechRecognition: def __init__(self, wor... 阅读全文
posted @ 2018-07-04 10:18 睡觉了嘛 阅读(195) 评论(0) 推荐(0) 编辑
摘要: from win32com.client import constants import os import win32com.client import pythoncom class SpeechRecognition: def __init__(self, wordsToAdd): self.speaker = win32com.client.Dispatch("S... 阅读全文
posted @ 2018-07-04 10:16 睡觉了嘛 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 键盘表链接 http://www.cnblogs.com/del/archive/2007/12/07/987364.html 阅读全文
posted @ 2018-07-04 10:00 睡觉了嘛 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1.绘制五角星 2.绘制sinx 3.绘制平方函数 阅读全文
posted @ 2018-06-24 08:28 睡觉了嘛 阅读(190) 评论(0) 推荐(0) 编辑
摘要: num = eval(input("请输入一个整数:")) for i in range(1, num + 1): for j in range(num-i, 0, -1): print(" ", end="\t") for j in range(i, 1, -1): print(j, end="\t") for j in range(1... 阅读全文
posted @ 2018-06-23 21:51 睡觉了嘛 阅读(1009) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页