Typing string.whitespace
gives you a string containing all whitespace characters defined by Python's string
module:
'
x0bx0c
'
Both x0b
and x0c
seem to give a vertical tab.
>>> print 'firstx0bsecond'
first
second
v
gives the same effect. How are these three different? Why does the string
module use x0b
or x0c
over the simpler v
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…