[Python] python列表操作:追加元素到列表 →→→→→进入此内容的聊天室

来自 , 2020-08-03, 写在 Python, 查看 118 次.
URL http://www.code666.cn/view/c480540d
  1. scores = ["1","2","3"]
  2.  
  3. # add a score
  4. score = int(raw_input("What score did you get?: "))
  5. scores.append(score)
  6.  
  7. # list high-score table
  8. for score in scores:
  9.        print score
  10.  

回复 "python列表操作:追加元素到列表"

这儿你可以回复上面这条便签

captcha