列表

bicycles = ['trek','cannondale','redline','specialized']
print(bicycles)
>>> bicycles = ['trek','cannondale','redline','specialized']
>>> message = "My first bicycle was a "+ bicycles[0].title() + "."
>>> print(message)
My first bicycle was a Trek.

 

 

posted on 2018-12-18 11:00  普奕天  阅读(73)  评论(0编辑  收藏  举报