wgrk.net
当前位置:首页 >> python uuiD1 timE >>

python uuiD1 timE

# -*- coding:utf-8 -*-import uuidSAFEHASH = [x for x in "0123456789-abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ"] def compress_UUID(): ''' 根据http://www.ietf.org/rfc/rfc1738.txt,由uuid编码扩大字符域生成串 包括: [0-9a...

错误信息已经很清楚了。 In [1]: import uuidIn [2]: uuid.uuid1()Out[2]: UUID('2bbeb370-e52b-11e4-a2b1-b8ee6591c407')In [3]: str(uuid.uuid1())Out[3]: '329f1b80-e52b-11e4-8fa5-b8ee6591c407'In [4]: dir(uuid.uuid1())Out[4]:['__class_...

可以参考: http://blog.csdn.net/rumswell/article/details/8927603

网站首页 | 网站地图
All rights reserved Powered by www.wgrk.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com