doc: document string.strip() optional argument [skip ci]

pull/9327/head
Stone Tickle 3 years ago committed by Jussi Pakkanen
parent 6512478d2f
commit fbc2e9b0ef
  1. 5
      docs/markdown/Syntax.md

@ -253,6 +253,11 @@ s = s.replace('as', 'are')
define = ' -Dsomedefine ' define = ' -Dsomedefine '
stripped_define = define.strip() stripped_define = define.strip()
# 'stripped_define' now has the value '-Dsomedefine' # 'stripped_define' now has the value '-Dsomedefine'
# You may also pass a string to strip, which specifies the set of characters to
# be removed.
string = 'xyxHelloxyx'.strip('xy')
# 'string' now has the value 'Hello'
``` ```
#### .to_upper(), .to_lower() #### .to_upper(), .to_lower()

Loading…
Cancel
Save