- 博客(7)
- 收藏
- 关注
原创 作业六2018.3.26
7-1car=input("What car do you want to rent?") print("Let me see if I can find you a "+car) 输入:Subaru输出:What car do you want to rent?Subaru Let me see if I can find you a Subaru7-2number=input("How man...
2018-03-26 09:09:10 167
原创 作业五2018.3.23
6-1message={'first_name':'James','last_name':'Mike','age':23,'city':'Hong Kong'} print(message) 输出:{'first_name': 'James', 'last_name': 'Mike', 'age': 23, 'city': 'Hong Kong'}6-5rivers={'nile':'egypt'...
2018-03-23 13:27:37 112
原创 作业四 2018.3.19
5-3通过测试:alien_color='green' if alien_color=='green': print('You get five points')输出:You get five points没有通过测试:alien_color='red' if alien_color=='green': print('You get five points') 无输出5-4alie...
2018-03-19 08:26:19 104
原创 作业三2018.3.16
4-2animals=['dog','cat','parrot'] for animal in animals: print(animal) for animal in animals: print("A "+animal+" would make a great pet") print("Any of these animals would make a great pet!")...
2018-03-16 12:48:06 140
原创 作业二2018.3.14
3-1friends=['Mike','Tina','Tom','Tim'] for friend in friends: print(friend.title()3-4friends=['Mike','Tina','tom','Tim']for friend in friends: print(friend.title()+', would you like to have di...
2018-03-14 10:56:32 121
原创 作业一 2018.3.11
2-1message="hello" print(message)2-2 message="hello" print(message) message="error" print(message)2-4 name="Eric" print(name.lower()) print(name.upper()) print(name.title())2-6 famous_person="Albert E...
2018-03-11 12:03:23 125
原创 关于python主页的发现和收获以及未来的目标
浏览过Python主页之后,首先给人的感觉是非常朴素与简洁,除了下载、新闻等内容没有其他非常多余的纯在,一目了然。另外,主页还贴上了滚动式的基础语法以及相关说明,简单的几行代码便让使用者感受到它与其他语言的不同之处:十分简洁流畅,没有多余的东西,作用也明显如下:能够让使用者快速工作并更加有效地整合系统。除此之外,主页上还有使用python的成功案例,并在不断更新中。其中有一段令人印象深刻的是p...
2018-03-05 22:28:14 143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人