摘要: 1 bicycles = ['trek', 'cannondale', 'redline', 'specialized', 'remove'] 2 print(bicycles) 3 print(bicycles[0]) 4 print(bicycles[0].title()) 5 print(bi 阅读全文
posted @ 2021-04-06 21:33 野兽Gentleman 阅读(46) 评论(0) 推荐(0)
摘要: 1 first_name = "ada" 2 last_name = "lovelace" 3 # f可以替换里面的内容 f字符串是python3.6引入的 full_name = “{}{}”.format(a,b) 4 5 full_name = f"{first_name}-{last_nam 阅读全文
posted @ 2021-04-06 21:11 野兽Gentleman 阅读(62) 评论(0) 推荐(0)