Testez à quelle vitesse vous pouvez appuyez sur EXE! Essayez click(5), où 5 est la durée du test.
import time import kandinsky as k def click(t): score=-1 for loop in range(3): u=3-loop k.draw_string("%s"%u,150,101) time.sleep(1) k.draw_string("go",150,101) t1=time.monotonic() t2=time.monotonic() while t2-t1<t: if input()=="": score+=1 k.draw_string("score:%s"%score,150,101) t2=time.monotonic() cps=score/t k.draw_string("cps:%s"%cps,150,120)