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

关于main函数调用 #571

Open
uichuan47 opened this issue Apr 19, 2024 · 1 comment
Open

关于main函数调用 #571

uichuan47 opened this issue Apr 19, 2024 · 1 comment

Comments

@uichuan47
Copy link

项目使用过python -m 运行的模块,我尝试直接调用main函数,但是报错相对导入的问题,想寻求解决方案可以抽象出一个函数供调用

@dataabc
Copy link
Owner

dataabc commented Apr 19, 2024

__main__.py就是main的调用,直接运行文件__main__.py和python -m效果相同。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants