Python Notes

Posted by Gavin Zhang on 12 May 2018 Categories: python Tags: python

Table of Content

字符串

  • raw string
    字符串前加 ‘r’ 或 ‘R’, 字符串里的字符不做转义.
    例子:r”this is a line with \n”
  • unicode string
    例子:u”this is a line”