摘要:
# Author:liuzhongchang name='liuzhongchang' print(name.capitalize())#首字母大写 print(name.count("a"))#统计字母数的 print(name.center(50,"-"))# print(name.encode())#将字符串转换成另一种编码 print(name.endswith("ang"))#判断字符... 阅读全文
posted @ 2017-11-28 10:53
L大胖
阅读(143)
评论(0)
推荐(0)
摘要:
product_list = [ ('Iphone',5800), ('Mac Pro',9800), ('Bike',800), ('Watch',10600), ('Coffee',31), ('liuzhongchang Python',120), ] shopping_list = [] salary = input("Input you... 阅读全文
posted @ 2017-11-16 16:18
L大胖
阅读(317)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchangimport copy #names="liuzhongchang wangfei liumuyu " name=["liuzhongchang","wangfei","liumuyu"] #name.append("liupeili")#插入到最后 #name.insert(1,"zhangguifen")#插入到哪个位置 #name[2]="s... 阅读全文
posted @ 2017-11-15 15:16
L大胖
阅读(90)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchang LIU_age = 27 count=0 while countLIU_age: print("think smaller...") else: print("think bigger...") count+=1 if count==3: countine_=input("do you wa... 阅读全文
posted @ 2017-11-13 15:01
L大胖
阅读(120)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchang LIU_age = 27 for i in range (3): guess_age = int(input("guess age:")) if guess_age==LIU_age: print("yes,you got it.") break elif guess_age>LIU_age: ... 阅读全文
posted @ 2017-11-13 15:00
L大胖
阅读(68)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchang LIU_age = 27 count=0 while countLIU_age: print("think smaller...") else: print("think bigger...") count+=1 else: print("you have tried too many times..fuc... 阅读全文
posted @ 2017-11-13 14:53
L大胖
阅读(107)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchang import getpass _userword="liuzhongchang" _password="123456" username=input("username:") password=input("password:") if _userword==username and _password==password: print("... 阅读全文
posted @ 2017-11-13 14:52
L大胖
阅读(667)
评论(0)
推荐(0)
摘要:
# Author:liuzhongchang username=input("username") password=input("password") print(username,password) name=input("name:") age=input("age:") job=input("job:") salary=input("salary:") info=''' ------i... 阅读全文
posted @ 2017-11-13 14:50
L大胖
阅读(184)
评论(0)
推荐(0)
浙公网安备 33010602011771号