美好的一天,用Python龜繪製半個正方形
我想寫這個Python代碼,這兩部分問題,這裏是我到目前爲止。如何有人能夠幫助我完成並糾正它?
這裏是我的嘗試:
#Question 11a
Print("Question 11a")
import turtle
s = turtle.Screen()
t = turtle.Turtle()
def halfSquare(t, length):
for i in range(2)
t.down()
t.forward(length)
t.right(90)
#Question 11b
print("Question 11b")
def halfSqaures(t, initial, increment, reps):
halfSquare(length):
請幫助!
那麼你的代碼有什麼問題? – IanS