| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1214 人关注过本帖
标题:小白求助有关python的问题 万分感谢!
只看楼主 加入收藏
qzksyl
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2019-11-1
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
小白求助有关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
fall_bernana
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:17
帖 子:243
专家分:2106
注 册:2019-8-16
收藏
得分:20 
回复 楼主 qzksyl
问题是什么?实现下面的每个方法?
2019-11-04 09:00
快速回复:小白求助有关python的问题 万分感谢!
数据加载中...
 
   



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

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