我有以下课程:class C3DPoint(object): def __init__(self, x, y, z): self.x = x self.y = y self.z = z # Other methods我想确定如果有人设置v3dpoint.x = <sth>它会抛出错误,以防 vale 不是字符串。如何才能做到这一点?
添加回答
举报
0/150
提交
取消
