Concatinate two lists,concatinatelists,inventory =
Concatinate two lists,concatinatelists,inventory =
inventory = ['sword', 'armor', 'shield', 'healing potion']chest = ['gold', 'gems']print 'You find a chest which contains:'print chestprint 'You add the contents of the chest to your inventory.'inventory += chestprint 'Your inventory is now:'print inventory
- While with break,whilewithbreak,while 1:
- How to Update Lists,howtoupdatelists,aList = [123
- Convert string:normal to unicode,normalunicode,print u
- Open a webbrowser with Google.,openwebbrowser,'''PYTHO
- Splitting Pathnames,splittingpathnames,import os os
- Define and use Modules,definemodules,# Fibonacci
热门文章:
相关内容
- While with break,whilewithbreak,while 1:
- How to Update Lists,howtoupdatelists,aList = [123
- Convert string:normal to unicode,normalunicode,print unicod
- Open a webbrowser with Google.,openwebbrowser,'''PYTHON SO
- Splitting Pathnames,splittingpathnames,import os os
- Define and use Modules,definemodules,# Fibonacci
- Get the length: number of items inside a string,lengthitems,print l
- Formatted print: float,formattedfloat,print '%.2f'
- String indexing: Random Access,indexingrandom,import rando
- Change CRLF line endings to LF (Windows to Unix),crlfendings,'''PYT
评论关闭