- 博客(8)
- 收藏
- 关注
原创 Python编程作业【第四周】(二)
8-1 messagesdef display_message(): print("nice to learn the method") display_message()8-2 favorite booksdef favorite_book(title): print("One of my favorite books is Alice in Wonderland") favor...
2018-03-29 18:12:47 341
原创 Python编程作业【第四周】(一)
7-1 rent a carcar = input("What kind of car do you want to rent?") print("Let me see if I can find you a Subaru")7-2 order tablepeople_number = int(input("How many people will have dinner here?")) if ...
2018-03-27 00:11:56 301
原创 Python编程作业【第三周】(二)
6-1 nameszhaobq = {"name": "zbq", "age": 20, "sex": "male"}6-2 favourite numbersfavourite_nums = {"zbq": 7, "zj": 5, "zzr": 6, "lxr": 1, "zzy": 4} for key,
2018-03-22 23:50:58 173
原创 Python编程作业【第三周】(一)
5-1 namescar = 'BMW'print (car == 'BMW')print (car == 'Audi')5-2 greet wordscar1 = 'BMW'car2 = 'Bmw'print (car1 == car2.upper())print (3 > 2)print (car1 == car2 and car1 == car2.upper())cars = ['BM...
2018-03-22 21:39:41 522
原创 Python编程作业【第二周】(二)
4-1 pizzapizzas = ["humbuger", "pizza", "pie"] for pizza in pizzas: print (pizza) for pizza in pizzas: print (pizza, ", I want to eat you˜") print ("I really love pizza!")4-2 animalsanimals = ...
2018-03-17 11:35:43 281
原创 Python编程作业【第二周】(一)
3-1 namesnames = ['zhaobinqi', 'zhuzhiru', 'zongjie'] for name in names: print (name)3-2 greet wordsnames = ['zhaobinqi', 'zhuzhiru', 'zongjie'] for name in names: print (name.title() + ', nic...
2018-03-12 23:15:42 285
原创 Python编程作业【第一周】(二)
TALK IS CHEAP, I WILL SHOW YOU MY CODE.2-1 simple messagea = "Hello python world!!!!" print (a)2-2 two simple messagesa = "Hello python world!!!!" print (a) a = "Nothing is really beautiful but truth"...
2018-03-11 10:12:15 291
原创 Python编程作业【第一周】(一)
1-1 python官网:python.org在第一节课上,老师对python这门语言做了简要的介绍,让我这个python的初学者对python有了大致的了解,其中python的官网也对我起到了很大的帮助。1、python官网的风格可以说是非常的简洁明了,设计风格也非常的美观。官网主页上贴出不同类型的选项:关于python、下载、文件、社区。滑动滚轮,继续浏览网页可以发现python的发展过程和升...
2018-03-10 10:58:51 1512
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人