【发布时间】:2017-03-11 18:55:44
【问题描述】:
所以我基本上想做一个硬币翻转脚本,它在最后一次打印时给了我“无效的语法”。你能帮帮我吗?
import random
print('Choose a number between 1 and 0')
answer=input()
number=random.choice('10')
random.choice('10')
print(random.choice('10'))
if answer == (number
print("You won"))
【问题讨论】:
标签: python printing syntax invalidation