- 博客(6)
- 收藏
- 关注
原创 python学习第4周(1)
#7-2num = input("how many people for dinner:")num = int(num)if num > 8 :print("there is no available table.\n")#7-3num = input("please input a numble:");if int(num) % 10 == 0 :print("it is ...
2018-03-28 20:09:33 122
原创 python学习第3周(2)
#6-2favorite_num = {"LiHua": 1,"Ben": 2,"Lili": 3,"Estin": 8,"Kimi": 6}for name, num in favorite_num.items():print(name + "'s favorite numble is " + str(num))#6-5rivers_inf = {"nile": "egyp...
2018-03-21 23:36:42 156
原创 python学习第3周(1)
#5-2str1 = "String"str2 = "string"print(str1 == str2)print(str1 != str2)print(str1.lower() == str2.lower())print(str1.lower() != str2.lower())print(4 == 5)print(4 != 5)print(4 > 5)print(4...
2018-03-21 22:59:20 129
原创 python学习第2周(2)
#4-2animals = ["dog", "cat", "pig"]for animal in animals :print("A " + animal + " would make a great pet")print("Any of the animals would make a great pet!")#4-3for value in range(1, 21):print(...
2018-03-15 16:17:50 123
原创 python学习第2周(1)
#python课后作业#3-1,2names = ["Wuzy", "Xul", "Xusw"]for name in names:print(name + ", How are you.")#3-3vehicles = ["car", "bike", "motorbike"]for vehicle in vehicles:print("I would like to own a ...
2018-03-13 19:44:32 277
原创 python学习第1周(2)
#python课后作业#2-3name = "alice"print("Hello " + name.title() + ", it's cold today.")#2-7name = "\n\tEinstein \n"print(name)print(name.lstrip())print(name.strip())print(name.rstrip())#2-8print...
2018-03-10 20:00:12 121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人