摘要:
函数参数的顺序def hello(greeting, name): print greeting + name如果记不清函数的参数顺序,可以在调用时hello(greeting = "hey", name = "jude")这样的话可以在看到函数调用时就知道参数做什么的也可以在定义的地方设置默认值d... 阅读全文
posted @ 2014-09-10 14:52
mess4u
阅读(318)
评论(0)
推荐(0)
摘要:
在执行 import module 时 会从1 当前目录2 pythonpath(可以通过 os.sys.path 查看)3 python 安装目录b import 了 a, c import 了 b,c 中也会有定义test.py 1 __all__ = ['a', 'b'] 2 3 def a... 阅读全文
posted @ 2014-09-10 09:20
mess4u
阅读(165)
评论(0)
推荐(0)

浙公网安备 33010602011771号