使用Python的龜圖形,我想接受我用戶單擊。但是,我還需要我的程序在等待點擊時暫停,而不是像當前那樣繼續。這裏是我的設置: from turtle import *
screen = getscreen()
def getInput():
coordinates = onscreenclick(clickHandler) # Returns x and y coordinates
我的目標是允許用戶輸入兩個變量的RGB值,但我不知道如何讓Python預先用標籤識別RGB值,例如int和float標籤。我的代碼示例如下所示。 shape_fill = input ("Which color do you want to fill your shape? Please enter an RGB value. "))
shape_pen = input ("Which colo