随笔分类 -  python

python相关
摘要:packing 组包,函数使用 【*】 (for tuples)【元组】, & 【**】(for dict) 【 字典】来接受可迭代的参数 unpacking 解包 ,函数内部定义多个参数(可以是具体的,也可以用【具体】+【*args】 OR 【**kwargs】)来对应传入的可迭代数据 eg: I 阅读全文
posted @ 2020-03-15 22:11 walk_the_talk 阅读(456) 评论(0) 推荐(0)
摘要:python 内置的 time模块,import time 可以直接使用。 time.time() 返回一串时间戳,整数位9位,javastript中为13位 python_10int = time.time()timestamp = int((round(python_10int * 1000)) 阅读全文
posted @ 2020-03-06 18:20 walk_the_talk 阅读(130) 评论(0) 推荐(0)