[编程入门]报数问题-题解 (python) 摘要:解题思路:注意事项:参考代码:A=[] a=int(input()) B=[2,1,0] C=[0,2,1] c=0 for i in range(a): A.append(i+1…… 题解列表 2021年10月19日 0 点赞 0 评论 350 浏览 评分:6.0
1118: Tom数-题解(python) 摘要:解题思路:注意事项:参考代码:while True: a = input() l = [] for i in a: l.append(int(i)) m = su…… 题解列表 2021年10月19日 0 点赞 0 评论 208 浏览 评分:0.0
1113: C语言考试练习题_保留字母-题解(python) 摘要:解题思路:注意事项:参考代码:a = input()l = []for i in a: if i.isalpha(): l.append(i)for j in l: prin…… 题解列表 2021年10月19日 0 点赞 0 评论 454 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程-题解(python) 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())m = b**2 - 4*a*cm = m**(0.5)x = (-b + m)/2y = (-b - m…… 题解列表 2021年10月19日 0 点赞 1 评论 313 浏览 评分:0.0
1124: C语言训练-大、小写问题-题解(python) 摘要:解题思路:直接使用lower函数,将所有大写字母转化为小写注意事项:参考代码:a = input().lower()print(a)…… 题解列表 2021年10月19日 0 点赞 0 评论 326 浏览 评分:0.0
1093: 字符逆序 python 摘要:解题思路:注意事项:参考代码:l = list(input)for i in l[::-1]:print(i,end='')…… 题解列表 2021年10月18日 0 点赞 0 评论 212 浏览 评分:0.0
运用python字典解题 摘要:解题思路:题目有干扰,要逆序思考,先按序号升序排列,再按语文成绩降序排列,最后再按总分降序排列注意事项:参考代码:n=eval(input())a=[]score=[]stu={}for i in r…… 题解列表 2021年10月18日 0 点赞 0 评论 535 浏览 评分:0.0
[编程入门]三个字符串的排序-题解(python代码) 摘要:参考代码:A=[input(),input(),input()] #将输入的字符串放入列表A A.sort() #将列表中的元素升序排序 for i in A:print(i) …… 题解列表 2021年10月16日 0 点赞 0 评论 711 浏览 评分:9.3
1049: [编程入门]结构体之时间设计-题解(python) 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1,m3,m5,m7,m8,m10,m12 = 31,31,31,31,31,31,31m4,m6,m9…… 题解列表 2021年10月16日 0 点赞 0 评论 252 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝-题解(python) 摘要:解题思路:索引注意事项:参考代码:a = int(input())b = input()c = int(input())print(b[c-1::])…… 题解列表 2021年10月16日 0 点赞 0 评论 269 浏览 评分:0.0