📜  python 字符串前缀 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:42.744000             🧑  作者: Mango

代码示例1
f'Hello, {name}' is the same as 'Hello, {}'.format(name) # if name is 'Mark', this outputs 'Hello, Mark'
b'This string is a byte string, it is stored as bytes and not as characters'
u'This is a Unicode string and is redundant in python 3.3 and above'
r'This is a raw string, so \n will be read as \n and not as a newline'