代码示例:(标识:python_scope_1)
python_scope_1.py
def myfunc():
  x = 100
  print(x)

myfunc()
运行结果: