python重载练习之复数加减法 摘要:解题思路:注意事项:参考代码:class Complex: def __init__(self, real1, imag1, real2, imag2, op): self…… 题解列表 2024年12月06日 0 点赞 0 评论 317 浏览 评分:0.0
python重载练习之复数加减法 摘要:解题思路:注意事项:参考代码:class Complex: def __init__(self,real=0,imag=0): self.real=real self…… 题解列表 2024年12月06日 0 点赞 0 评论 197 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:class Date: def __init__(self): self.__year = 0 self.__mon…… 题解列表 2024年12月04日 0 点赞 0 评论 460 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:def Compare(a, b): if isinstance(a, int) and isinstance(b, int): return…… 题解列表 2024年12月04日 0 点赞 0 评论 282 浏览 评分:9.9
七行代码解决问题 摘要:解题思路:用字符串解决问题注意事项:无参考代码:a=input()print(len(a))for i in range(len(a)): print(a[i],end=" ")print()fo…… 题解列表 2024年12月03日 0 点赞 0 评论 1100 浏览 评分:4.8
不懂可评论 摘要:解题思路:注意事项:参考代码:class Time: def __init__(self): self.__h=0 #__表示私有,防止外部访问和修改 …… 题解列表 2024年12月03日 0 点赞 0 评论 349 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:在初始化的时候有些复杂,暂时想不出更好的方法注意事项:参考代码:a=int(input())c1=0c2=0c3=0sz=0s1=0s2=0s3=0x=""for i in range(a)…… 题解列表 2024年12月01日 0 点赞 0 评论 395 浏览 评分:0.0
[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:a=int(input())for i in range(a): b=input().split() print(','.join(b))…… 题解列表 2024年12月01日 0 点赞 0 评论 604 浏览 评分:6.0
Python 1075 台球碰撞 用一行代码解决计算问题 摘要:解题思路:首先,按照L,W,x,y,R,a,v,s的形式来讲 第一点,明确台球中心点概念,每次碰撞并不是中心点碰撞台球桌边界,而是以边界撞击边界值,所以台球中心点的位移区域是R<=x<=L-R,…… 题解列表 2024年11月30日 2 点赞 0 评论 437 浏览 评分:10.0
海伦公式秒杀 摘要:解题思路:注意事项:参考代码:import mathnum=list(map(float,input().split()))a=math.sqrt((num[3] - num[1]) ** 2 + (…… 题解列表 2024年11月30日 0 点赞 0 评论 323 浏览 评分:0.0