摘要: python3 测试数据100w mysql5.7 insert replace 阅读全文
posted @ 2017-07-27 18:00 开不开门 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding: UTF-8 -*-import mysql.connectorimport randomimport stringimport time#批量插的次数 loop_count = 10000000#每次批量查的数据量batch_size = 阅读全文
posted @ 2017-07-27 16:16 开不开门 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 python2 string.join(list,'_') python3 ('_').join(list) 2 py2 xrange py3 range 阅读全文
posted @ 2017-07-27 15:18 开不开门 阅读(649) 评论(0) 推荐(0) 编辑