源码索引 / CURRENT IMPLEMENTATION
docs/deep/examples/ast/independent/before.ast.txt
32 行 · 点击行号可定位;函数链接随声明位置更新,不手填行号。
Module(
body=[
Assign(
targets=[
Name(id='a', ctx=Store())],
value=Call(
func=Name(id='tool', ctx=Load()),
args=[
Constant(value='lookup')],
keywords=[
keyword(
arg='key',
value=Constant(value='book'))])),
Assign(
targets=[
Name(id='b', ctx=Store())],
value=Call(
func=Name(id='tool', ctx=Load()),
args=[
Constant(value='lookup')],
keywords=[
keyword(
arg='key',
value=Constant(value='shipping'))])),
Assign(
targets=[
Name(id='result', ctx=Store())],
value=BinOp(
left=Name(id='a', ctx=Load()),
op=Add(),
right=Name(id='b', ctx=Load())))],
type_ignores=[])