mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Neaten up example so it can be cut and pasted.
This commit is contained in:
parent
5166375045
commit
9c47d778f7
1 changed files with 2 additions and 2 deletions
|
@ -1336,8 +1336,8 @@ successive matches::
|
||||||
tax := price * 0.05;
|
tax := price * 0.05;
|
||||||
'''
|
'''
|
||||||
>>> for token in tokenize(statements):
|
>>> for token in tokenize(statements):
|
||||||
... print(token)
|
print(token)
|
||||||
...
|
|
||||||
Token(typ='ID', value='total', line=1, column=8)
|
Token(typ='ID', value='total', line=1, column=8)
|
||||||
Token(typ='ASSIGN', value=':=', line=1, column=14)
|
Token(typ='ASSIGN', value=':=', line=1, column=14)
|
||||||
Token(typ='ID', value='total', line=1, column=17)
|
Token(typ='ID', value='total', line=1, column=17)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue