随笔分类 -  PY蟒蛇书

第三章:列表
摘要:点击查看代码 # 列表 bicycles = ['trek', 'cannodale', 'redline', 'specialized'] print(bicycles) # 访问元素 print(bicycles[0].title()) # 第一个 print(bicycles[-1].titl 阅读全文
posted @ 2023-10-11 16:48 ruoye123456 阅读(3) 评论(0) 推荐(0) 编辑
第二章:变量和简单的数据类型
摘要:点击查看代码 message='"Hellw world"' # 大小写转化 print(message.title()) print(message.lower()) print(message.upper()) first_name = "ruo" second_name = "ye" # f字 阅读全文
posted @ 2023-10-11 15:11 ruoye123456 阅读(3) 评论(0) 推荐(0) 编辑