def tempr():
print("in the function")
.
.
.
.
tempr()
这样 python 函数就可以工作,而
tempr()
.
.
.
.
.
def tempr():
print("in the function")
这不起作用
而在 C++ 中,我们有一个原型声明来告诉编译器该函数存在。我在这里做什么?Python可以处理函数定义上方的这种c ++类型的函数调用语句吗
烙印99
炎炎设计
紫衣仙女
随时随地看视频慕课网APP
相关分类