This commit is contained in:
xixu-me committed 2024-05-19 13:07:00 +08:00
1 parent 373b9c500f
commit 928370a142
3 files changed
+23

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
import pyautogui
print("按下 Ctrl-C 退出")
try:
while True:
x, y = pyautogui.position()
positionStr = "X: " + str(x).rjust(4) + " Y: " + str(y).rjust(4)
print(positionStr, end="")
print("\b" * len(positionStr), end="", flush=True)
except KeyboardInterrupt:
print("\n")
View File
File renamed without changes.