更新时间:2022-06-05 09:45:56
使用:
import color
class Color(color.Color):
...
如果这是 Python 2.x,您还需要从 object
派生 color.Color
,使其成为 新式类:
If this were Python 2.x, you would also want to derive color.Color
from object
, to make it a new-style class:
class Color(object):
...
这在 Python 3.x 中不是必需的.
This is not necessary in Python 3.x.