编写题解 1031: [编程入门]自定义函数之字符串反转(利用切片解决) 摘要:解题思路:注意事项:参考代码:def main(): a = input() print(a[::-1])main()…… 题解列表 2022年05月08日 0 点赞 0 评论 402 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a = 0b = 0c = 0d = 0e = input()for i in e: if i.isalpha(): a+=1 elif i.i…… 题解列表 2022年05月08日 0 点赞 0 评论 342 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def yidong(): a = eval(input()) b = list(map(int,input().split())) c = e…… 题解列表 2022年05月08日 0 点赞 0 评论 361 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) sum1=sum2=sum3=0 for i in range(1,a+1): sum1+=i…… 题解列表 2022年05月08日 0 点赞 0 评论 223 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=1 for i in range(1,n+1): a=1 for j in range(1,i+…… 题解列表 2022年05月08日 0 点赞 0 评论 311 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=0 for i in range(n): a=a*10+2 sum+=a print(sum)…… 题解列表 2022年05月08日 0 点赞 0 评论 394 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 546 浏览 评分:0.0
题目 1118: Tom数【两行代码】 摘要:解题思路:[int(i) for i in input()] :将输入的数字字符串转换为列表,其实就是迭代的过程sum() :对列表内的数据进行求和注意事项:无参考代码:while True: …… 题解列表 2022年05月06日 0 点赞 0 评论 1113 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 362 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:a=input('') print(len(a)) for i in a: print(i,end=' ') print(…… 题解列表 2022年05月05日 0 点赞 0 评论 251 浏览 评分:0.0