commit
ada2e95afb
12
python.md
12
python.md
|
@ -73,6 +73,18 @@ category: Python
|
|||
str.strip()
|
||||
|
||||
str.islower()
|
||||
|
||||
/* escape characters */
|
||||
>>> 'doesn\'t' # use \' to escape the single quote...
|
||||
"doesn't"
|
||||
>>> "doesn't" # ...or use double quotes instead
|
||||
"doesn't"
|
||||
>>> '"Yes," they said.'
|
||||
'"Yes," they said.'
|
||||
>>> "\"Yes,\" they said."
|
||||
'"Yes," they said.'
|
||||
>>> '"Isn\'t," they said.'
|
||||
'"Isn\'t," they said.'
|
||||
|
||||
### Casting
|
||||
|
||||
|
|
Loading…
Reference in New Issue