点击运行
#!/usr/bin/python3 #这里是函数的定义 def printme( str ): "This prints a passed string into this function" print (str) return; #现在可以调用 printme 函数 printme("I'm first call to user defined function!") printme("Again second call to the same function")
运行结果 :
正在执行...