如果你使用类来结构化你的数据,你可以使用类名之后跟一个类似于构造器的参数列表,这样能够捕获属性放入到变量中: class Point: x: int y: int def where_is(point): ...
確定! 回上一頁