我是一个蟒蛇初学者.我试图运行此代码:
def main():
print ( " This program computes the average of two exam scores . ")
score1,score2 = input ("Enter two scores separated by a comma:")
average = (score1 + score2)/2.0
print ("The average of the score is : " , average )
Run Code Online (Sandbox Code Playgroud)
当我召唤时,main()我得到了这个ValueError:
ValueError: too many values to unpack (expected 2)
Run Code Online (Sandbox Code Playgroud)
这段代码有什么问题?