- 博客(4)
- 收藏
- 关注
原创 《Python编程从入门到实践》课后题答案第8章函数
练习8-1 消息def display_message(): """显示本章学了什么""" print("第八章学函数") display_message()练习8-2 喜欢的图书def favorite_book(title): print("One of my favorite books is " + title.title() + ".") ...
2020-04-13 15:02:39
742
原创 《Python编程从入门到实践》课后题答案第7章用户输入和while循环
练习7-1 汽车租赁message = input("你想要租什么车?")print("Let me see if I can find you a Subaru.")message = input("请问有多少人用餐?")message = int(message)练习7-2 餐馆定位if message >= 8: print("没有位置") el...
2020-04-13 14:48:25
478
原创 《python编程从入门到实践》课后题答案第6章字典
练习6-1人informations = {'first_name':'Sun','last_name':'Qian', 'age':30,'city':'Beijing'}print(informations['first_name'])print(informations['last_name'])print(informations['age'])...
2020-04-13 14:34:32
799
原创 《Python编程从入门到实践》课后题答案第5章if语句
**练习5-3外星人的颜色#1alien_color = "green"if alien_color == "green": print("You get 5 points!")else: print("You get 10 points!")练习5-4外星人颜色#2alien_color = "red"if alien_color == "green": ...
2020-04-13 13:54:42
390
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅