我想知道我的代码有什么问题吗?我正在使用python 3.0
import random
random.seed(1,10)
a = random.randint (1,10)
b = random.randint (1,10)
print("What is: " + str(a) + " X " + str(b) + "?")
ans = int(input("Your answer: "))
if (a * b == ans):
print ("Correct!")
else:
print ("Incorrect!")
给定代码,我只能想到缩进错误。请看下面,它的工作原理是-
以及查看屏幕截图-
Here is the URL to access the IDE.