小白求助有关python的问题 万分感谢!
建造一个2D的直角坐标系class Cartesian():
def __init__(self,xxx): # modify this line, with input (x,y)
# the first function is to returns the length from the point to the origin
def length_to_o(self):
# consider that any 2 points (not identical) in a plane form a line, this function returns the slope and the intercept
# that is, if the line equals y = ax + b, then this function outputs a and b
def line(self, xxx): # modify this line, with input (x,y
# this function returns the distance between two points with Cartesian coordinate
def length_p2p(self, xxx): # modify this line, with input (x,y)
# this function converts a Cartesian coordinate (x,y) to polar coordinate (r, theta)
def to_polar(self):