pyautogui Notes
Tutorials
获取位置 position()
屏幕尺寸 size()
给定位置是否在屏幕内 onScreen(x, y)
初始配置
调用延时 pyautogui.PAUSE = 2.5
设置调用延时
- 每一次调用 pyautogui 之后, 会被延时多久
中止方式 pyautogui.FAILSAFE = True
- 鼠标移动到左上角,中止执行
移动操作
pywin32 Notes
Tutorials and Documentations
https://stackoverflow.com/questions/5481686/why-cant-i-find-any-pywin32-documentation-resources
http://docs.activestate.com/activepython/2.6/pywin32/PyWin32.HTML
https://pbpython.com/windows-com.html
numpy -- Python Matrix Compputing Library
概念
Axis
用途
- 用来说明维度,第几个维度
取值
- 0
- row, 行
- 1
- column, 列
- 2
- panel, 层
- -1
- last, 最后一维
使用场景
np.stack
- axis 直接指定堆叠操作的维度,其它维度,依次用单个元素的 shape 成员取代
0 – 把数据在不同的行之间堆叠
Meghanada Notes
不能使用
可能是因为 emacs 以前的缓存造成的拖累
解决方法
- 删除 .emacs.d/workspace 文件夹
- 重启
调试方法
shell 启动
1java -jar ~/.emacs.d/meghanada/meghanada-1.3.1.jar
argparse
argparse 模块, 辅助模块 shlex
辅助模块 shlex
eg: shlex.split('lpp –species-list Na NaH')
弹出错误提示
- 使用 parser.error("Your message.")
https://stackoverflow.com/questions/6722936/python-argparse-make-at-least-one-argument-required
| |