123456789101112131415161718192021222324252627282930313233 |
- Module(body=[Assign(targets=[Name(id='x',
- ctx=Store())],
- value=Num(n=1)),
- Assign(targets=[Name(id='n',
- ctx=Store())],
- value=Num(n=0)),
- While(test=Compare(left=Name(id='x',
- ctx=Load()),
- ops=[Lt()],
- comparators=[Num(n=10)]),
- body=[Assign(targets=[Name(id='x',
- ctx=Store())],
- value=BinOp(left=Name(id='x',
- ctx=Load()),
- op=Add(),
- right=Num(n=1))),
- If(test=Compare(left=Name(id='n',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=2)]),
- body=[Continue()],
- orelse=[]),
- Assign(targets=[Name(id='n',
- ctx=Store())],
- value=BinOp(left=Name(id='n',
- ctx=Load()),
- op=Add(),
- right=Num(n=1)))],
- orelse=[]),
- Print(dest=None,
- values=[Name(id='n',
- ctx=Load())],
- nl=True)])
|