This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import zipfile | |
print "Processing File " + sys.argv[1] | |
file=zipfile.ZipFile(sys.argv[1],"r"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, shutil, glob | |
[os.mkdir(file[:-4]) for file in glob.glob("*.tga")] | |
[shutil.move(file, file[:-4]) for file in glob.glob("*.tga")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: gbk -*- | |
__author__ = 'harmy' | |
import glob | |
def main(): | |
guild_master = {} | |
guild_member_count = {} | |
with open("update_guild.sql", "w+") as f: | |
#插入tbl_guild_member表 | |
for txt_file in glob.glob("*.txt"): |
NewerOlder