Skip to content

Instantly share code, notes, and snippets.

@liuyix
Created November 7, 2016 04:17
Show Gist options
  • Save liuyix/03149ec33ef2afd40688e45f39fd4e85 to your computer and use it in GitHub Desktop.
Save liuyix/03149ec33ef2afd40688e45f39fd4e85 to your computer and use it in GitHub Desktop.
binlog_list = list()
for i in xrange(20):
# 使用zfill补全0
binlog = 'mysql-bin.' + str(i).zfill(6)
binlog_list.append(binlog)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment