Python學習筆記(2018.01.28/29)

1、字符串 python中單引號和雙引號使用完全相同。 使用三引號('''或""")可以指定一個多行字符串。 轉義符 '\' 自然字符串, 通過在字符串前加r或R。 如 r"this is a line with \n" 則\n會顯示,並不是換行。 python允許處理unicode字符串,加前綴u或U, 如 u"this is an unicode string"。 字符串是不可變的。 按字面意
相關文章
相關標籤/搜索