def定义函数
def sayhello():
print(“hello world”)

sayhello()

如何做传入参数的做法
def max(a,b):
if a>b:
reture a
else:
reture b

print(max(2,3))

更多相关文章

  1. PHP字符运算、类型转换和系统函数
  2. ES6基本语法,Axios异步网络请求介绍
  3. Python的装饰器原来是这么用的
  4. 循环语句 超级全局变量 及 cURL函数
  5. ES6 和异步网络请求
  6. udp数据报从网卡驱动到用户空间流程总结
  7. 关于ptype_all和pypte_base中的pt_prev的说明
  8. Netfliter状态跟踪之动态协议的实现浅析(tftp实现)
  9. 如何正确使用 Python 的 Lambda 函数

随机推荐

  1. 权重
  2. 有关XML的点击状态背景图的设置
  3. android 的中文意思
  4. Android 仿QQ多级列表框实现
  5. 针对Android 平板的海豚浏览器正式版推出
  6. Android Wear Preview - 设计规范(Design
  7. android root后数据安全
  8. android屏保源码
  9. Android--ListView 分割线
  10. android API版本对应的系统版本及Android