[Python] python中如何定义函数 →→→→→进入此内容的聊天室

来自 , 2020-07-09, 写在 Python, 查看 172 次.
URL http://www.code666.cn/view/c9319967
  1. #!/usr/bin/python
  2. # Filename: function1.py
  3.  
  4. def sayHello():
  5.     print 'Hello World!' # block belonging to the function
  6.  
  7. sayHello() # call the function
  8.  
  9.  
  10.  

回复 "python中如何定义函数"

这儿你可以回复上面这条便签

captcha