ImportError:无法导入名称X
import timefrom entity import Entfrom vector import Vect#the rest just creates an entity and prints the result of movement
from vector import Vectfrom physics import Physicsclass Ent: #holds vector information and iddef tick(self, dt): #this is where physics changes the velocity and position vectors
from math import *class Vect: #holds i, j, k, and does vector math
from entity import Entclass Physics: #physics class gets an entity and does physics calculations on it.
Traceback (most recent call last):File "main.py", line 2, in <module> from entity import EntFile ".../entity.py", line 5, in <module> from physics import PhysicsFile ".../physics.py", line 2, in <module> from entity import EntImportError: cannot import name Ent
慕无忌1623718
青春有我
相关分类