March is a gift.
Python学习-Chapter7 用户输入和while循环 Python学习-Chapter7 用户输入和while循环
Chapter7 用户输入和while循环7.1 input()字符串输入用户输入文本,把文本呈现给用户 message = input("请输入返回的文本:") print(message) 请输入返回的文本:12345 12345 7.
2022-11-14
Python学习-Chapter6 字典 Python学习-Chapter6 字典
Chapter6: 字典(类比结构体)6.1 一个简单的字典car = {'brand':'bwm','price':1000000,'color':'black'} print(car['brand']) print(car['pric
2022-11-11
Python学习-Chapter5 if语句 Python学习-Chapter5 if语句
今天是柴柴的生日!谢谢宝贝蛋的惊喜,开心心!阿狐姐姐辛苦啦❤️Chapter 5 if语句5.1 简单示例cars = ['audi','bmw','subaru','toyota'] for car in cars: if ca
2022-11-09
Python学习-Chapter4 操作列表 Python学习-Chapter4 操作列表
Chapter4 操作列表4.1 for循环的使用4.1.1 这是一个利用循环打印的例子:a = ['a','b','c','d'] for an in a: #冒号必不可少 print(an) a b c d 4.1.2 利用
2022-11-08
Python学习-Chapter3 列表 Python学习-Chapter3 列表
3.1使用列表中的各个值注意! 索引可以指定负数! a=['1','2','3'] print(a[-1]) print(a[-2]) print(a[-3]) 3 2 1 负数即倒数第几个 bicycles = ['trek','cann
2022-11-06