将做工程过程中常用的内容做个收藏,如下的内容是关于python列表操作:追加元素到列表的内容。
scores = ["1","2","3"]
# add a score
score = int(raw_input("What score did you get?: "))
scores.append(score)
# list high-score table
for score in scores:
print score
原文地址:https://blog.51cto.com/14101311/2375098
时间: 2024-11-05 21:35:36