[Python] python 给数组按片赋值 →→→→→进入此内容的聊天室

来自 , 2019-12-14, 写在 Python, 查看 99 次.
URL http://www.code666.cn/view/1906f335
  1. inventory = ["sword", "armor", "shield", "healing potion"]
  2.  
  3. inventory[4:6] = ["orb of future telling"]
  4.  
  5. print inventory
  6.  
  7.  

回复 "python 给数组按片赋值"

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

captcha