Weitere ähnliche Inhalte
Ähnlich wie Derrubando mitos em Python (20)
Derrubando mitos em Python
- 10. >>> backslash = ''
>>> print(backslash)
>>> raw_string = re.compile(r'')
>>> raw_string.sub('1', backslash)
'1'
- 11. >>> backslash = ''
>>> print(backslash)
>>> normal_string = re.compile('')
>>> normal_string.sub('1', backslash)
'1'
- 12. Para aprender mais
http://docs.python.org/2/library/re.html
http://docs.python.org/2/reference/lexical_analysis.html#literals
- 26. >>> l = [1, 2, 3, 4]
>>> len(l)
4
- 27. >>> l = [1, 2, 3, 4]
>>> l.__len__()
4