2017年5月2日

函数1

摘要: 1、自己定义函数 def 函数名(参数列表) : 使用return返回值 别的文件要调用该自定义函数,需要添加语句 from 文件名 import 函数名 例如: from abstest import my_abs 可以定义空函数用作占位符,适用于写程序的粗略框架 def nop(): pass 阅读全文

posted @ 2017-05-02 22:31 vonkimi 阅读(100) 评论(0) 推荐(0) 编辑

导航