def add (x):
y = x + 1
return y
res = add (2)
print(res)
# 3
python—— python自定义函数
Guess you like
Origin blog.csdn.net/qq_43201350/article/details/120110932
Ranking
def add (x):
y = x + 1
return y
res = add (2)
print(res)
# 3