t456.trans 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Module(body=[Assign(targets=[Name(id='ctr',
  2. ctx=Store())],
  3. value=Num(n=0)),
  4. FunctionDef(name='f',
  5. args=arguments(args=[],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Global(names=['ctr']),
  10. AugAssign(target=Name(id='ctr',
  11. ctx=Store()),
  12. op=Add(),
  13. value=Num(n=1)),
  14. Return(value=Name(id='ctr',
  15. ctx=Load()))],
  16. decorator_list=[]),
  17. Assign(targets=[Name(id='lst',
  18. ctx=Store())],
  19. value=Call(func=Name(id='range',
  20. ctx=Load()),
  21. args=[Num(n=4)],
  22. keywords=[],
  23. starargs=None,
  24. kwargs=None)),
  25. AugAssign(target=Subscript(value=Name(id='lst',
  26. ctx=Load()),
  27. slice=Index(value=Call(func=Name(id='f',
  28. ctx=Load()),
  29. args=[],
  30. keywords=[],
  31. starargs=None,
  32. kwargs=None)),
  33. ctx=Store()),
  34. op=Add(),
  35. value=Num(n=3)),
  36. Print(dest=None,
  37. values=[Name(id='lst',
  38. ctx=Load())],
  39. nl=True)])