所以,对于学校来说,我们必须做一个让用户猜数字的程序。我有以下代码:
import random
my_number=random.randrange(100)
player_number=605
i=int(0)
while player_number!=my_number :
player_number=int(input("Guess what number I am thinking of :"))
if player_number<my_number:
print("Too low")
else:
print("Too high")
print("... Attemp", i=i+1)
print("Right")
我收到一条错误消息说'i' is an invalid function
。谁能帮我?