摘要: 1,字符串: print('hello\nrunoob') # 使用反斜杠(\)+n转义特殊字符 print(r'hello\nrunoob') # 在字符串前面添加一个 r,表示原始字符串,不会发生转义 str(x) 将对象 x 转换为字符串 a = 'b' str() 2,元组: tuple(s 阅读全文
posted @ 2020-05-15 23:05 pwcc 阅读(176) 评论(0) 推荐(0)