Update
This commit is contained in:
1 parent
373b9c500f
commit
928370a142
3 files changed
+23
No files matched your search
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python Debugger: Current File",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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")
|
||||
File renamed without changes.
Reference in new issue
Block a user