自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 高级编程技术(第11次作业)

#11.1import unittest def city_country(city, country): return city.title() + ', ' + country.title() class CityCountryTestCase(unittest.TestCase): def test_city_country(self): c_c = c...

2018-06-20 17:00:22 141

原创 高级编程技术(第十次作业)

#10.1 with open ('learning_python.txt') as file_object: print(file_object.read().rstrip()) #10.2 with open ('learning_python.txt') as file_object: lines = file_object.readlines(); for ...

2018-05-01 09:24:09 173

原创 高级编程技术(第九次作业)

#9.1-9.2 class Restaurant() : def __init__(self,restaurant_name,cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type self.number_served = 0 def describe_rest...

2018-04-08 10:19:42 173

原创 高级编程技术(第八次作业)

#8.1 def display_message(): print("what we learn in this chapter is the function") display_message() #8.5 def describe_city(cityname,citybelong = 'China'): print(cityname + ' is in ' + citybelong)...

2018-04-08 09:27:20 180

原创 高级编程技术(第七次作业)

#7.3 age = input(" please enter a number:\n") age = int(age) if age%10 == 0: print("this number can be divided by 10") else: print("this number can't be divide by 10") #7.5,7,6 active = True while...

2018-03-26 17:32:07 167

原创 高级编程技术(第六次作业)

#6.2 favorite_number = { 'alice' : 1, 'bob' : 2, 'frank' : 3, 'harvey' : 4, 'john' : 5, } print(favorite_number) #6.5 river rivers = { 'nile' : 'egypt', 'changjia' : 'china', 'yellow river' :...

2018-03-26 08:27:38 147

原创 高级编程技术(第五次作业)

#5.3 5.4 alien_color = "green" if alien_color == "green": print("you get five points!") else: print("youg get ten points!") alien_color = "yellow" if alien_color == "green": print("you

2018-03-19 13:07:43 185

原创 高级编程技术(第四次作业)

#4.2 animals = ["dog","cat","bird"] for animal in animals : print(animal) print("A " + animal + " would make a great pet!") print("any of these animals would make a great pet!") #4.5 number =

2018-03-18 22:30:18 212

原创 高级编程技术(第三次作业)

#3.1 names = ['zhangyuanying','zhangyixiong','zhangziqi','harvey','andy'] for name in names: print(name) #3.4,3.6, 3.7 guests = ['harvey','john','bob'] for guest in guests: print(guest + ",would y...

2018-03-12 18:56:43 203

原创 第二次作业(高级编程技术)

#2.1 ~2.2 message = "hello world" print(message) message = "hello" print(message) #2.3~2.7 name = "harvey" print("Hello " + name + ",would you like to learn some python today") print(name.title()) pr...

2018-03-07 21:48:00 279

原创 第一次作业(高级编程技术)

1.python主页上的发现和收获。python主页上除了基本的下载和介绍外,还有三个地方让我收获颇多。1.主页上有一个在线的编译器,可以完成python 的基本任务,而且他会随机的出现一些简单的python用法,比如fibonacci数列的实现,对数组的理解,如何循环一个数组,对列表进行简单的操作等,有助于初学者对python有一些基本的了解,提起对python 的兴趣2.主页上有些succes...

2018-03-05 18:45:36 295

空空如也

空空如也

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

TA关注的人

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