摘要: 首先导包: import uuid uuid1(): # make a UUID based on the host ID and current time # 基于MAC地址,时间戳,随机数来生成唯一的uuid,可以保证全球范围内的唯一性 >>> uuid.uuid1() # doctest: + 阅读全文
posted @ 2018-03-23 14:59 kadima_zy 阅读(490) 评论(0) 推荐(0) 编辑