题解 1161: 回文数(二)(python) 摘要:def n_to_ten(n,m): j = 0 sum =0 for i in str(m)[::-1]: sum += int(i)*n**j …… 题解列表 2021年12月24日 0 点赞 0 评论 744 浏览 评分:0.0
str = replace(old, new)替换所有空格 摘要:就这???? 就这??? while 1: st = input() NewSt = st.replace(' ', '') print…… 题解列表 2021年12月24日 0 点赞 0 评论 399 浏览 评分:0.0
divmod(x, y)函数,集商和余数于一体 摘要: # a, b = divmod(x, y) divmod()函数会返回两个值,第一个为 x // y, 第二个返回值为 x % y MoneyVariety_lis =…… 题解列表 2021年12月24日 0 点赞 0 评论 850 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:找规律 借助画图工具来进行找规律100 50 50 25 25 12 .5 12.5.........注意事项:注意要保留两位小数参考代码:m,n=map(int,input().split…… 题解列表 2021年12月23日 0 点赞 0 评论 663 浏览 评分:9.9
[编程入门]三个字符串的排序(python代码) 摘要:解题思路:注意事项:参考代码:a=input();b=input();c=input()x=[a,b,c]x.sort()for i in x: print(i)…… 题解列表 2021年12月23日 0 点赞 0 评论 641 浏览 评分:9.0
[编程入门]三个字符串的排序(python代码) 摘要:解题思路:注意事项:参考代码:def gys(x,y): if x>y: z=y else: z=x while z!=0: if x%z=…… 题解列表 2021年12月23日 0 点赞 0 评论 565 浏览 评分:6.0
列表去重、排序 摘要: m = int(input()) m_lis = list(map(int, input().split())) #输入 m_lis1 = m_lis[:] #…… 题解列表 2021年12月22日 0 点赞 0 评论 499 浏览 评分:0.0
列表排序、元素交换 摘要:**`` lis_num = list(map(int, input().split())) lis_num1 = lis_num possition1 = lis_…… 题解列表 2021年12月22日 0 点赞 0 评论 478 浏览 评分:0.0
编写题解 1160: 出圈 摘要:while True: try: n,m =map(int,input().split()) lis = list(range(1,n+1)) …… 题解列表 2021年12月22日 0 点赞 0 评论 400 浏览 评分:0.0
编写题解 1159: 偶数求和 摘要:解题思路:注意事项:参考代码:while True: try: n,m= map(int,input().split()) ls = [2] …… 题解列表 2021年12月22日 0 点赞 0 评论 470 浏览 评分:0.0