摘要: print('and') print("1.",True and True) print("2.",False and False) print('3.',True and False,'\n') print('or') print('4.',True or True) print('5.',True or False) print('6.',False or False,'\n') pri... 阅读全文
posted @ 2018-01-20 20:41 善行无辙 阅读(257) 评论(0) 推荐(0)
摘要: name = input("Name:") age = int(input("Age:")) job = input("Job:") salary = input("Salary:") if salary.isdigit(): #长的像不像数字,比如200d , '200' salary = int(salary) # else: # #print() # exit("... 阅读全文
posted @ 2018-01-20 20:38 善行无辙 阅读(97) 评论(0) 推荐(0)
摘要: #Python字符串的拼接,以及单双引号的运用print('abc','efg') print("abc","efg") print('abc'+'efg') print('"abc"') print("'abc'") #字符串的多行输出 print('''abc''') print('''a b c d''') print( 阅读全文
posted @ 2018-01-20 20:35 善行无辙 阅读(157) 评论(0) 推荐(0)
摘要: 笔记都在OneNote中, OneNote笔记 如果笔记有什么错误,请指正,谢谢!么么哒! 阅读全文
posted @ 2018-01-01 16:42 善行无辙 阅读(181) 评论(0) 推荐(0)