python-3.x - turtle.onclick() 用法

它看起来像这样:


import turtle

jim = turtle.Turtle()

def line():
 jim.fd(20)
 jim2.lt(90)
 jim.fd(20)

def reset()
 jim.reset()
 jim2.reset()

def click():
 wn.onscreenclick(None, reset())

line()
click()

时间:

对wn.onscreenclick的调用应该是:


wn.onscreenclick(None, reset)

...