+2
-1
@@ -1,4 +1,5 @@
|
|||||||
.vs
|
.vs
|
||||||
build
|
build
|
||||||
database
|
database
|
||||||
dist
|
dist
|
||||||
|
temp.png
|
||||||
@@ -260,10 +260,14 @@ while while_loop:
|
|||||||
text_draw = ImageDraw.Draw(image)
|
text_draw = ImageDraw.Draw(image)
|
||||||
text_draw.text((x_position, y_position), FeatureByte, fill=text_color, font=font)
|
text_draw.text((x_position, y_position), FeatureByte, fill=text_color, font=font)
|
||||||
# 保存生成的图像
|
# 保存生成的图像
|
||||||
image.save("database/"+sn+".png")
|
filename="database/"+sn+".png"
|
||||||
|
image.save(filename)
|
||||||
|
|
||||||
# 显示图像(可选)
|
#try print
|
||||||
image.show()
|
pilfile=Image.open(filename)
|
||||||
|
pilfile.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print("Data Error")
|
print("Data Error")
|
||||||
|
|||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
block_cipher = None
|
||||||
|
|
||||||
|
|
||||||
|
a = Analysis(
|
||||||
|
['begin.py'],
|
||||||
|
pathex=[],
|
||||||
|
binaries=[],
|
||||||
|
datas=[],
|
||||||
|
hiddenimports=[],
|
||||||
|
hookspath=[],
|
||||||
|
hooksconfig={},
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
win_no_prefer_redirects=False,
|
||||||
|
win_private_assemblies=False,
|
||||||
|
cipher=block_cipher,
|
||||||
|
noarchive=False,
|
||||||
|
)
|
||||||
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||||
|
|
||||||
|
exe = EXE(
|
||||||
|
pyz,
|
||||||
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
[],
|
||||||
|
name='begin',
|
||||||
|
debug=False,
|
||||||
|
bootloader_ignore_signals=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
runtime_tmpdir=None,
|
||||||
|
console=True,
|
||||||
|
disable_windowed_traceback=False,
|
||||||
|
argv_emulation=False,
|
||||||
|
target_arch=None,
|
||||||
|
codesign_identity=None,
|
||||||
|
entitlements_file=None,
|
||||||
|
icon=['logo.ico'],
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user