Python自学:第三章 使用列表中的各个值

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

print(message)

输出为:

My first bicycle was a Trek.

猜你喜欢

转载自www.cnblogs.com/zhouxiin/p/10721413.html