点击运行
#!/usr/bin/python #Function definition is here def printme( str ): "This prints a passed string into this function" print str return; #Now you can call printme function printme("I'm first call to user defined function!") printme("Again second call to the same function")
运行结果 :
正在执行...