自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 《Python编程——从入门到实践》第八章部分习题解

# 8-2 def favorite_book(title): print('One of my favorite book is ' + title) title_temp = input("What's your favorite book?") favorite_book(title_temp)# 8-5 def describe_city(city,country='China'): ...

2018-03-29 22:20:03 255

原创 《Python编程——从入门到实践》第七章部分习题解

# 7-2 num = input('How many people are going to have dinner?') num = int(num) if num >= 8: print('There is no empty table.') else: print('There are some empty tables.')# 7-5 while True: age = in...

2018-03-29 21:45:33 243

原创 《Python编程——从入门到实践》第六章部分习题解

# 6-3 words = {'int' : 'integer', 'char' : 'character', 'long' : 'long integer', 'float' : 'single-precision floating-point', 'double' : 'double-precision floating-point'} for noun, means in words.ite...

2018-03-21 22:06:16 426

原创 《Python编程——从入门到实践》第五章部分习题解

# 5-2 str1 = 'Basketball' str2 = 'Football' print(str1 == str2) print(str1 != str2) print(str1.lower() == str1) print(str2.lower() != str2) num = 35 print(num == 35) print(num != 30) print(num > 11...

2018-03-21 21:29:19 388

原创 《Python编程——从入门到实践》第四章部分习题解

# 4-2 animals = ['cat' , 'tiger' , 'leopard'] for animal in animals: print(animal) for animal in animals: print('A ' + animal + ' is a Felidae') print('Any of these animals is Felidae') # 4-9 cubic ...

2018-03-14 21:55:25 435

原创 《Python编程——从入门到实践》第三章部分习题解

# 3-3 traffic_tools = ['bicycle' , 'car' , 'motorcycle'] print('I would like to own a ' + traffic_tools[0]) print('I would like to own a ' + traffic_tools[1]) print('I would like to own a ' + traffic_...

2018-03-14 21:37:11 498

原创 《Python编程——从入门到实践》第二章习题解

# 2-1 简单消息 message = "Hello World !" print( message )# 2-2 多条简单消息 message = "Hello World !" print( message ) message = "Hello Python !" print( message )# 2-3 个性化消息 user_name = input() print( "Hello E...

2018-03-07 22:20:55 277

原创 有关于Python主页的观察收获以及对未来的展望

        在开始学习python之前,首要任务便是了解python。为此,我特地去python的官网主页阅览了一番。        作为一个相当热门的机器语言,学习python正是大势所趋。在python的主页,四个主要模块我都仔细阅读了一番:latest news、upcoming events、success stories以及use python for...。latest news是...

2018-03-07 21:28:20 361

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除