print civility
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
from mrz.generator.td1 import TD1CodeGenerator
|
||||
|
||||
first_name = "renda"
|
||||
last_name = "cong"
|
||||
first_name = "eryan"
|
||||
last_name = "dai"
|
||||
document_number = "XKJ0WSK30"
|
||||
birth_day = "971227"
|
||||
sex = "F"
|
||||
# sex = "M"
|
||||
birth_day = "951211"
|
||||
# sex = "F"
|
||||
sex = "M"
|
||||
# optinal_data = "MFMLMANK<<<<A9" #14位
|
||||
nationality = "CHN"
|
||||
country_code = "FRA"
|
||||
# optinal_data = "<E10805074" # 14位
|
||||
optinal_data = "<544055394" #总共11位,最前面那位为空,所以加<
|
||||
optinal_data = "<967343145" #总共11位,最前面那位为空,所以加<
|
||||
document_prefix = "IR"
|
||||
expire_date = "150826"
|
||||
expire_date = "260815"
|
||||
if optinal_data is not None:
|
||||
code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality,
|
||||
last_name, first_name, optional_data1=optinal_data)
|
||||
else:
|
||||
code = TD1CodeGenerator(document_prefix, country_code, document_number, birth_day, sex, expire_date, nationality,
|
||||
last_name, first_name)
|
||||
if sex == "M":
|
||||
print("男性")
|
||||
else:
|
||||
print("女性")
|
||||
print(code)
|
||||
|
||||
Reference in New Issue
Block a user