立即学习:https://edu.csdn.net/course/play/24797/282155?utm_source=blogtoedu
字符串 可以用
'' ""
当矛盾
1.用不同引号区分
2.转义符 \'
无法连接 str+int (需要转换)
repr() and str()
repr python表达式
input 获取用户输入内容
''' ''' 长字符串 可用' \n 换行’来解决长
原始字符串 r 开头
r'' 原始字符串里面特殊字符会失效
除了引号还是会转义
字符串-字节串
字节串bytes b1=b'abc'
b2=''我爱你’‘.encode()
’‘utf-8’‘ 默认
b3=bytes()
反向
b3.decode(’‘utf-8'')