摘要:
python在编写排列组合是会用到 itertools 模块 排列 组合 可以重复的排序(类似密码) 利用生成器可以跌代的生产密码,节约内存 阅读全文
posted @ 2019-05-03 14:32
anobscureretreat
阅读(1924)
评论(0)
推荐(0)
摘要:
输出 阅读全文
posted @ 2019-05-03 14:28
anobscureretreat
阅读(1387)
评论(0)
推荐(0)
摘要:
os.system("系统命令") 调用系统命令 os.listdir(地址) 扫描目录里面的文件。默认的是当前文件夹 返回一个列表 os.mkdir(路径) 创建一个文件夹 os.popen (系统命令) 方法用于从一个命令打开一个管道 os常用 的几个方法 阅读全文
posted @ 2019-05-03 14:24
anobscureretreat
阅读(196)
评论(0)
推荐(0)
摘要:
import win32con import win32api import time win32api.SetCursorPos([30,30]) # 设置鼠标位置 time.sleep(0.1) #win32con.MOUSEEVENTF_RIGHTDOWN 右边鼠标按下 #win32con.MOUSEEVENTF_RIGHTDUP 右边鼠标抬起 #win32con.MOUSEEVE... 阅读全文
posted @ 2019-05-03 14:12
anobscureretreat
阅读(459)
评论(0)
推荐(0)
摘要:
pattern = input("请输入你要选择的模式:") while True: if pattern == "A": row = eval(input("请输入行数:")) for i in range(1, row + 1): for j in range(1, i+1): print(j... 阅读全文
posted @ 2019-05-03 13:56
anobscureretreat
阅读(2874)
评论(0)
推荐(0)
摘要:
code 阅读全文
posted @ 2019-05-03 13:52
anobscureretreat
阅读(492)
评论(0)
推荐(0)
摘要:
显示 阅读全文
posted @ 2019-05-03 13:48
anobscureretreat
阅读(1996)
评论(0)
推荐(0)
摘要:
code 阅读全文
posted @ 2019-05-03 13:39
anobscureretreat
阅读(1721)
评论(0)
推荐(0)
摘要:
code 阅读全文
posted @ 2019-05-03 13:36
anobscureretreat
阅读(2217)
评论(0)
推荐(1)
摘要:
code 阅读全文
posted @ 2019-05-03 13:34
anobscureretreat
阅读(4923)
评论(0)
推荐(0)
摘要:
import win32con # 定义 import win32gui # 界面 import time # 时间 QQ= win32gui.FindWindow("Notepad","无标题 - 记事本") for num in range(120): time.sleep(1) if num%2 == 0: win32gui.ShowWindow... 阅读全文
posted @ 2019-05-03 13:23
anobscureretreat
阅读(2032)
评论(0)
推荐(0)
摘要:
输出 阅读全文
posted @ 2019-05-03 13:14
anobscureretreat
阅读(379)
评论(0)
推荐(0)
摘要:
import win32con import win32gui import time while True: time.sleep(1) notepad = win32gui.FindWindow("Notepad","无标题 - 记事本") for size in range(0,1620): time.sleep(0.001) w... 阅读全文
posted @ 2019-05-03 13:12
anobscureretreat
阅读(212)
评论(0)
推荐(0)
摘要:
import win32con import win32gui import time import math notepad = win32gui.FindWindow("Notepad","无标题 - 记事本") while True: # time.sleep(0.5) for size in range(0,800): time.sleep(0.005... 阅读全文
posted @ 2019-05-03 13:10
anobscureretreat
阅读(229)
评论(0)
推荐(0)
摘要:
使用之前先打开一个记事本, import win32gui import win32con import time notepad = win32gui.FindWindow("Notepad","无标题 - 记事本") while(1): for size in range(0,800): win32gui.SetWindowPos(notepad, # 操作记事本... 阅读全文
posted @ 2019-05-03 12:47
anobscureretreat
阅读(1721)
评论(0)
推荐(0)
摘要:
需先打开一个无标题记事本, 阅读全文
posted @ 2019-05-03 12:40
anobscureretreat
阅读(1033)
评论(0)
推荐(0)
摘要:
# 系统客户端包 import win32com.client speaker = win32com.client.Dispatch("SAPI.SPVOICE") # 系统接口 while True: speaker.Speak("你要说的话") 阅读全文
posted @ 2019-05-03 12:27
anobscureretreat
阅读(789)
评论(0)
推荐(0)
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xce in position 0: invalid continuatio
摘要:
点击 文档>>设置文件编码>>Unicode>>Unicode(UTF-8) 阅读全文
posted @ 2019-05-03 02:50
anobscureretreat
阅读(7156)
评论(1)
推荐(0)
摘要:
utf-8 阅读全文
posted @ 2019-05-03 02:49
anobscureretreat
阅读(1220)
评论(0)
推荐(0)

浙公网安备 33010602011771号