0
下面是一个代码,我有一小块:如何让python添加一个字符串在一起?
studentName = ""
def getExamPoints (total):
for i in range (4):
total = 0.0
examPoints = input ("Enter exam score for " + studentName + str(i+1) + ": ")
total = ?????
total = total/.50
total = total * 100
其中?????是我无法弄清楚如何获得字符串来添加四个分数
学生的名字我输入后来,它是需要在程序后面我使用examPoints = getExamPoints(studentName)
。
工作完美!谢谢!!!!! – user2031682 2013-03-01 06:40:46