weiboSpider icon indicating copy to clipboard operation
weiboSpider copied to clipboard

关于main函数调用

Open uichuan47 opened this issue 1 year ago • 1 comments

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

uichuan47 avatar Apr 19 '24 09:04 uichuan47

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

dataabc avatar Apr 19 '24 14:04 dataabc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 03:04 stale[bot]

Closing as stale, please reopen if you'd like to work on this further.

stale[bot] avatar May 06 '25 04:05 stale[bot]