python3(一)

mac2022-06-30  42

print('test', '怎么自动建了这么多目录', 'aaaaaaa') #test 怎么自动建了这么多目录 aaaaaaa 注释# # --------------------------------------- a = 100 if a >= 0: print(a) #100 else: print(-a) # --------------------------------------- 转义 print('I\'m ok.') # I'm ok. r''表示''内部的字符串默认不转义 print(r'\\\t\\') # \\\t\\ 换行 print('ab \nvvcc') # ab # vvcc '''...'''的格式表示多行内容 print('''line1 line2 line3''') #line1#line2#line3  

转载于:https://www.cnblogs.com/shaozhiqi/p/11543380.html

最新回复(0)