标题:小白求助有关python的问题 万分感谢!
取消只看楼主
qzksyl
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2019-11-1
结帖率:0
已结贴  问题点数:20 回复次数:0 
小白求助有关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):
搜索更多相关主题的帖子: this def the line function 
2019-11-01 22:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-497559-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.134905 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved