小于号笔记本上怎么打
import randomi = random.randint(1, 20)
print("I am thinking of a number between 1 and 20")
for guesses in range(1,7):
print("Take a guess.")
guess=int(input())
if guess﹤i:
print(Your number is too low.)
elif
系统显示if那一句有误,why import random
i = random.randint(1, 20)
print("I am thinking of a number between 1 and 20")
for guesses in range(1,7):
print("Take a guess.")
guess=int(input())
if guess < i:
print("Your number is too low.")
编程时,不可使用中文标点,而且它下面的print里面的内容也没有加引号。 shift+, 难道和台式机不一样吗? 笔记本的品牌、型号得发出来呀 看你输入法如果是台湾的那种拼音的输入法 倒是有可能按键不一样
日文输入法 按【)】出来【(】按【,】出来【;】也是这样的
然后就是设置全角半角{:10_313:} 还有就是你键帽可能装错了 import random
i = random.randint(1, 20)
print("I am thinking of a number between 1 and 20")
for guesses in range(1,7):
print("Take a guess.")
guess=int(input())
if guess <i:
print("Your number is too low.")
elif guess > i:
print('Your number is too high.')
else:
print('Yes')
页:
[1]