类不能直接通过import得到
生活随笔
收集整理的這篇文章主要介紹了
类不能直接通过import得到
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
import ludwig.models.modules.sequence_encoders.StackedCNN
輸出:
ModuleNotFoundError ? ? ? ? ? ? ? ? ? ? ? Traceback (most recent call last)
<ipython-input-7-f1ab4133783a> in <module>
----> 1 import ludwig.models.modules.sequence_encoders.StackedCNN
ModuleNotFoundError: No module named 'ludwig.models.modules.sequence_encoders.StackedCNN'; 'ludwig.models.modules.sequence_encoders' is not a package
from ?ludwig.models.modules.sequence_encoders import StackedCNN
輸出:沒有任何輸出
即是成功的
總結
以上是生活随笔為你收集整理的类不能直接通过import得到的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux 使用trick记录之2020
- 下一篇: python中的json注意事项