热门标签
更多>
搜索结果
查询Tags标签: chap5,共有 2条记录-
Python入门之chap5-if语句
一个简单示例 cars = [audi,bmw,subaru,toyota]for car in cars:if car == bmw:print(car.upper())else:print(car.title())输出结果: Audi BMW Subaru Toyota 条件测试 True/False if语句 if-elif-else结构 age = 12 if age <4:price = 0 elif age < 18:price = 1…
2021/8/7 12:06:04 人评论 次浏览 -
Python入门之chap5-if语句
一个简单示例 cars = [audi,bmw,subaru,toyota]for car in cars:if car == bmw:print(car.upper())else:print(car.title())输出结果: Audi BMW Subaru Toyota 条件测试 True/False if语句 if-elif-else结构 age = 12 if age <4:price = 0 elif age < 18:price = 1…
2021/8/7 12:06:04 人评论 次浏览