uuidTest.py 370 B

123456789101112131415161718192021
  1. # coding=utf-8
  2. '''
  3. Created on 2016年4月1日
  4. @author: ChenHao
  5. '''
  6. import uuid
  7. # fout = open("uuid.txt", "a")
  8. # for i in range(1, 10):
  9. # num = uuid.uuid1()
  10. # uuid_str = str(num)
  11. # new_str = uuid_str.replace("-", "")
  12. # fout.write(new_str + "\n")
  13. d = dict()
  14. d["name"] = "chenhao"
  15. d["age"] = 13
  16. str = "**" + d["name"] + str(d["age"]) + "**"
  17. print (str)