我在我的第一个编程cass,我想了解Python。从随机导入* def FillStudentsNames():
studentNames = []
for studentNames in range(1,11):
user_input = input("What is the students name? : ")
print(user_input)
我以为我理解none作为一个有用的工具来适应缺少参数的常量。但是,我遇到过这种情况,这并不成立,我不明白为什么。 例如: def boxarea(l,w,h):
if h is not None:
area = l*w*h
else:
area = l*w
return area
def main():
a = boxarea(2