22智能在线
新记
python def的函数运行吗
如题所述
举报该文章
相关建议 2017-11-10
可以运行的,def是自定义函数。
比如:
def add(x, y):
print "x is {0} and y is {1}".format(x, y)
return x + y
调用方法:
add(1,2)
温馨提示:内容为网友见解,仅供参考
当前网址:
https://22.t2y.org/zz/fh26it0fs62cct2ich6.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
python中def函数在编译时不调用会运行么?
python 为什么用def定义函数?
pythondef函数?
python def 函数不能被调用
python def是什么意思?
python def定义完函数后怎么退出,以及如何调用函数
Python中关于def定义函数的一些问题
python的类中def __init__是什么意思,做什么...