0
What does a string containing a double quote look like?
5 Réponses
+ 9
With Python:
str1 = "this is a \"string\" example"
str2 = 'this is a "string" example'
str3 = '''this is a "string" example'''
str4 = """this is a "string" example"""
... the two last are the 'triple quote' notation, mainly use for docstring purposes, but is a valid string literal notation, allowing multi-lines:
str5 = """this is another example...
... showing multi-lines possibility"""
+ 2
String ABC="The Best is \"SoloLearn\"";
+ 2
Every language has its own way to show special characters. Usually, it's called "escape characters", in case you wanna search for it.
0
大家好像都没理解楼主的意思?
- 3
" "