t114.trans 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Module(body=[Assign(targets=[Name(id='a',
  2. ctx=Store())],
  3. value=List(elts=[Num(n=1),
  4. Num(n=2),
  5. Num(n=3),
  6. Num(n=4),
  7. Num(n=5),
  8. Num(n=6)],
  9. ctx=Load())),
  10. Assign(targets=[Name(id='b',
  11. ctx=Store())],
  12. value=List(elts=[Num(n=9),
  13. Num(n=9),
  14. Num(n=9)],
  15. ctx=Load())),
  16. Assign(targets=[Subscript(value=Name(id='a',
  17. ctx=Load()),
  18. slice=Slice(lower=Num(n=1),
  19. upper=Num(n=5),
  20. step=None),
  21. ctx=Store())],
  22. value=Name(id='b',
  23. ctx=Load())),
  24. Print(dest=None,
  25. values=[Name(id='a',
  26. ctx=Load())],
  27. nl=True),
  28. Assign(targets=[Name(id='mylist',
  29. ctx=Store())],
  30. value=List(elts=[Str(s='a'),
  31. Str(s='b'),
  32. Str(s='c'),
  33. Str(s='d')],
  34. ctx=Load())),
  35. Assign(targets=[Name(id='d',
  36. ctx=Store())],
  37. value=Dict(keys=[Str(s='1'),
  38. Str(s='2')],
  39. values=[Num(n=1),
  40. Num(n=2)])),
  41. Assign(targets=[Subscript(value=Name(id='mylist',
  42. ctx=Load()),
  43. slice=Slice(lower=Num(n=0),
  44. upper=Num(n=2),
  45. step=None),
  46. ctx=Store())],
  47. value=Name(id='d',
  48. ctx=Load())),
  49. Print(dest=None,
  50. values=[Name(id='mylist',
  51. ctx=Load())],
  52. nl=True),
  53. Assign(targets=[Subscript(value=Name(id='mylist',
  54. ctx=Load()),
  55. slice=Slice(lower=Num(n=1),
  56. upper=Num(n=3),
  57. step=None),
  58. ctx=Store())],
  59. value=Str(s='temp')),
  60. Print(dest=None,
  61. values=[Name(id='mylist',
  62. ctx=Load())],
  63. nl=True),
  64. Assign(targets=[Subscript(value=Name(id='mylist',
  65. ctx=Load()),
  66. slice=Slice(lower=None,
  67. upper=None,
  68. step=None),
  69. ctx=Store())],
  70. value=List(elts=[Str(s='g'),
  71. Str(s='o'),
  72. Str(s='o'),
  73. Str(s='d')],
  74. ctx=Load())),
  75. Print(dest=None,
  76. values=[Name(id='mylist',
  77. ctx=Load())],
  78. nl=True)])