摘要: 1、在python字符串前添加r,意思为消除转义字符。 print(r'test\n') print(r'test\t') print(r'test\r') 2、在python字符串前添加f,意思为支持大括号内的python 表达式。 idx=1str = f'{idx}的类型为{type(idx) 阅读全文
posted @ 2020-07-27 09:21 Frederic_Niu 阅读(833) 评论(0) 推荐(0) 编辑