我在我的第一個編程cass,我想了解Python。從隨機導入*預計縮進塊 - python
def FillStudentsNames():
studentNames = []
for studentNames in range(1,11):
user_input = input("What is the students name? : ")
print(user_input)
def FillStudentsGrades():
studentGrades =[]
for studentGrades in range (1,11):
grade = randint(1,100)
print(grade)
return studentGrades
def ShowData(studentNames, studentGrades):
counter = 0
studentNames=[]
studentGrades=[]
for counter in range(0,10):
def main():
FillStudentsNames = StdNames
main()
和我真的不知道爲什麼:
我已經得到了這些代碼的縮進塊。我縮進了「def main」,因爲那是解析器顯示錯誤的地方。現在我收到了同樣的信息,但沒有指出具體的空間。
感謝球員,我非常欣賞的反饋! – Leavingtheecstasy