jf...@ms4.hinet.net於 2019年10月8日星期二 UTC+8上午10時45分36秒寫道:
> For example:
> from my-dir import test
> 
> I know it can be solved by renaming, but any alternative?
> 
> --Jach

Maybe another (better?) solution is:
import sys
sys.path.append(r'my-dir')
import test

--Jach
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to