字符逆序-题解(Python代码)超级详细!!! 摘要:解题思路:先看题目将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。输入输入包括一行。 第一行输入的字符串。输出输出转换好的逆序字符串。样例输入I am a student样例…… 题解列表 2021年01月23日 0 点赞 0 评论 1250 浏览 评分:9.9
A+B for Input-Output Practice (IV)-题解(Python代码) 摘要:参考代码:ls = [int(i) for i in input().split()] while ls[0] != 0: s = 0 for i in ls[1:]: …… 题解列表 2021年01月23日 0 点赞 0 评论 342 浏览 评分:0.0
二级C语言-自定义函数-题解(Python代码) 摘要:参考代码:def fact(n): s = 1 for i in range(1,n+1): s *= i return s def mypow(x,…… 题解列表 2021年01月22日 0 点赞 2 评论 673 浏览 评分:9.9
二级C语言-最小绝对值-题解(Python代码) 摘要:参考代码:#输入 ls = [int(i) for i in input().split()] #找到最小值和相应的索引 s = ls[0] for i in range(10): …… 题解列表 2021年01月22日 0 点赞 0 评论 419 浏览 评分:0.0
[编程入门]温度转换-题解(Python代码) 摘要:解题思路:注意事项:参考代码:F=float(input())c=5*(F-32)/9print("c={:.2f}".format(c))…… 题解列表 2021年01月22日 0 点赞 0 评论 399 浏览 评分:0.0
数字整除-题解(Python代码) 摘要:#### 虽然繁琐,但是简单明了,代码呈上!! ```python n = list(input()) num_lis = [] while int(n[0]) != 0: #数据输入 …… 题解列表 2021年01月22日 0 点赞 0 评论 391 浏览 评分:9.9
蓝桥杯算法提高VIP-前10名-题解(Python代码) 摘要:# Life is short,I use Python! ``` n = int(input()) data = list(map(int, input().strip().split()…… 题解列表 2021年01月22日 0 点赞 0 评论 300 浏览 评分:0.0
二级C语言-计算素数和-题解(Python代码) 摘要:#### 代码如下,凑乎着看哈:stuck_out_tongue: ```python def isprime(): sum = 0 m, n = map(int, inpu…… 题解列表 2021年01月22日 0 点赞 0 评论 629 浏览 评分:6.0
[编程入门]结构体之成绩统计2-题解(Python代码) 摘要:#### 简单明了,但是有点繁琐:wink: ```python def entry(): #输入函数,利用二维列表存放学生的信息 n = int(input()) Lis =…… 题解列表 2021年01月21日 0 点赞 0 评论 929 浏览 评分:9.9
去掉空格-题解(Python代码)-replace替换 摘要:解题思路:replace替换参考代码:s = input() while s != 'End of file': print(s.replace(' ',&…… 题解列表 2021年01月21日 0 点赞 0 评论 566 浏览 评分:8.9