标签:dex else UNC result 目录 入门 定义 def turn
在函数内调用函数
def index():
print('from index')
def func():
index()
print('from func')
func()
def funcl(x, y):
if x > y:
return x
else:
return y
print(funcl(1, 2))
def func2(x, y, z, a):
result = funcl(x, y)
result = funcl(result, z)
result = funcl(result, a)
return result
print(func2(1, 200000, 3, 1000))
def index():
def home():
print('from home')
home()
index()
标签:dex else UNC result 目录 入门 定义 def turn
原文地址:https://www.cnblogs.com/cnhyk/p/11838424.html