raw字符串是什么意思 和多行字符串的區別是什么
還可以在多行字符串前面添加 r ,把這個多行字符串也變成一個raw字符串:
//這句話是什么意思? 有什么用
r'''Python is created by "Guido".
It is free and easy to learn.
Let's start learn Python in imooc!'''
還可以在多行字符串前面添加 r ,把這個多行字符串也變成一個raw字符串:
//這句話是什么意思? 有什么用
r'''Python is created by "Guido".
It is free and easy to learn.
Let's start learn Python in imooc!'''
2015-11-18
舉報
2015-11-19
raw字符串就是里面的字符不需要轉義。
轉義字符是將反斜杠“\”后面的字符轉換成另外的意義。如"\n","n"不代表字母n而作為“換行符”。
print r'''Python is created by "Guido".
It is free and easy to learn.
Let's start learn Python in imooc!'''
Python is created by "Guido".
It is free and easy to learn.
Let's start learn Python in imooc!