mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 05:28:14 +08:00
更新文件名修整方法
This commit is contained in:
@@ -24,7 +24,7 @@ def gen(fn):
|
|||||||
|
|
||||||
s = re.sub("((?:0x.+?,){16})", "\\1\n", s)
|
s = re.sub("((?:0x.+?,){16})", "\\1\n", s)
|
||||||
|
|
||||||
fn = fn.replace('.', '_')
|
fn = re.sub(r"[^\w]", "_", fn)
|
||||||
print("const unsigned char %s[0x%x] = {\n%s};" % (fn, len(dat), s))
|
print("const unsigned char %s[0x%x] = {\n%s};" % (fn, len(dat), s))
|
||||||
|
|
||||||
for fn in glob.glob('*.html'):
|
for fn in glob.glob('*.html'):
|
||||||
|
|||||||
Reference in New Issue
Block a user