print civility

This commit is contained in:
Lei PAN
2026-01-13 22:20:14 +01:00
parent 13b9777edc
commit f0b01087ff
+11 -7
View File
@@ -1,22 +1,26 @@
from mrz.generator.td1 import TD1CodeGenerator from mrz.generator.td1 import TD1CodeGenerator
first_name = "renda" first_name = "eryan"
last_name = "cong" last_name = "dai"
document_number = "XKJ0WSK30" document_number = "XKJ0WSK30"
birth_day = "971227" birth_day = "951211"
sex = "F" # sex = "F"
# sex = "M" sex = "M"
# optinal_data = "MFMLMANK<<<<A9" #14位 # optinal_data = "MFMLMANK<<<<A9" #14位
nationality = "CHN" nationality = "CHN"
country_code = "FRA" country_code = "FRA"
# optinal_data = "<E10805074" # 14位 # optinal_data = "<E10805074" # 14位
optinal_data = "<544055394" #总共11位,最前面那位为空,所以加< optinal_data = "<967343145" #总共11位,最前面那位为空,所以加<
document_prefix = "IR" document_prefix = "IR"
expire_date = "150826" expire_date = "260815"
if optinal_data is not None: if optinal_data is not None:
code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality, code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality,
last_name, first_name, optional_data1=optinal_data) last_name, first_name, optional_data1=optinal_data)
else: else:
code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality, code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality,
last_name, first_name) last_name, first_name)
if sex == "M":
print("男性")
else:
print("女性")
print(code) print(code)