源码索引 / CURRENT IMPLEMENTATION
docs/deep/examples/ast/unsupported_loop/after.ast.txt
27 行 · 点击行号可定位;函数链接随声明位置更新,不手填行号。
Module(
body=[
Assign(
targets=[
Name(id='result', ctx=Store())],
value=Constant(value=0)),
For(
target=Name(id='i', ctx=Store()),
iter=Call(
func=Name(id='range', ctx=Load()),
args=[
Constant(value=2)],
keywords=[]),
body=[
AugAssign(
target=Name(id='result', ctx=Store()),
op=Add(),
value=Call(
func=Name(id='tool', ctx=Load()),
args=[
Constant(value='lookup')],
keywords=[
keyword(
arg='key',
value=Constant(value='book'))]))],
orelse=[])],
type_ignores=[])