# 顯示滑鼠點擊的位置 ``` # ch31_21.py import turtle def printStr(x,y): print(f'({int(x)},{int(y)})',end=' ') t = turtle.Pen() t.screen.onclick(printStr) t.screen.mainloop() ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up