摘要: import pynput start = None end = None def on_click(x, y, button, pressed): global start, end print('{0} {1} at {2}'.format(button,'Pressed' if pressed 阅读全文
posted @ 2021-07-22 13:25 wztshine 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Pathlib Pathlib 有 Path,PurePath 两个常用的模块。Path 是带有 IO 操作的对象,可以使用 Path.exists(),Path.is_file() 等方法。而 PurePath 可以简单理解为字符串,不能进行 IO 的操作。如果你只是单纯的进行路径字符拼接、路径分 阅读全文
posted @ 2021-07-22 10:31 wztshine 阅读(153) 评论(0) 推荐(0) 编辑