PPysolate SpineREAD THE CODE · UNDERSTAND THE SYSTEM
课程与章节
源码索引 / CURRENT IMPLEMENTATION

docs/deep/examples/ast/dependency/before.ast.txt

43 行 · 点击行号可定位;函数链接随声明位置更新,不手填行号。

Module(
  body=[
    Assign(
      targets=[
        Name(id='key', ctx=Store())],
      value=Call(
        func=Name(id='tool', ctx=Load()),
        args=[
          Constant(value='lookup')],
        keywords=[
          keyword(
            arg='key',
            value=Constant(value='choose'))])),
    Assign(
      targets=[
        Name(id='price', ctx=Store())],
      value=Call(
        func=Name(id='tool', ctx=Load()),
        args=[
          Constant(value='lookup')],
        keywords=[
          keyword(
            arg='key',
            value=Name(id='key', ctx=Load()))])),
    Assign(
      targets=[
        Name(id='shipping', 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='price', ctx=Load()),
        op=Add(),
        right=Name(id='shipping', ctx=Load())))],
  type_ignores=[])