热门

最新

红包

立Flag

投票

同城

我的

发布
it_xiangqiang
源代码大师
5 年前
trueit_xiangqiang

博主简介:https://blog.csdn.net/it_xiangqiang/article/details/115873169

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
[Python]请问这个程序设计里面怎么确保分子分母的因数只有1呀~Design a class ‘fractions’ so that the fractions can be directly added and subtracted like integers. For example, 2/1+3/5=13/5, and make sure that the numerator and denominator do not have a common factor greater than 1.(hint: overwrite __str__, __add__, __sub__ methods)……
立即登录