Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3运行出错 #1

Closed
joshfeng opened this issue Jan 3, 2019 · 2 comments
Closed

python3运行出错 #1

joshfeng opened this issue Jan 3, 2019 · 2 comments
Labels
good first issue Good for newcomers

Comments

@joshfeng
Copy link

joshfeng commented Jan 3, 2019

python identity.py
File "identity.py", line 86
print IdNumber.generate_id(random_sex) # 随机生成身份证号
^
SyntaxError: invalid syntax

@joshfeng
Copy link
Author

joshfeng commented Jan 3, 2019

id_number = str(random.choice(list(const.AREA_INFO.keys())))

print("id:", IdNumber.generate_id(random_sex)) # 随机生成身份证号

改好就可以在python3运行了

@jayknoxqu
Copy link
Owner

那就好 我还在下载Python3呢 下好测试一波 提交

@jayknoxqu jayknoxqu added the good first issue Good for newcomers label Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants