【Python3】基础知识

python3的基础: 1、字符串 python中单引号和双引号使用彻底相同。 使用三引号('''或""")能够指定一个多行字符串。 转义符 '' 天然字符串, 经过在字符串前加r或R。 如 r"this is a line with \n" 则\n会显示,并非换行。 python容许处理unicode字符串,加前缀u或U, 如 u"this is an unicode string"。 字符串是
相关文章
相关标签/搜索