编写题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a=input() b=[' ' for k in range(len(a)…… 题解列表 2024年03月12日 0 点赞 0 评论 639 浏览 评分:0.0
解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): s = input() s = s.lower() if s[0].isalpha…… 题解列表 2024年08月01日 0 点赞 0 评论 1070 浏览 评分:0.0
2858: 整理药名(详细思路) 解题思路:只看首个字符是不是小写字母,是就改为大写字母,不是就直接存起来,其他部分就看是不是大写字母,是就改为小写,不是就直接存起来,首字母和其他部分刚好反过来注意事项:参考代码:a=int(input())foriinrange(a):b=list(input())c=''#用来存修 题解列表 2026年09月27日 1 点赞 0 评论 154 浏览 评分:0.0
题目 2858: 整理药名(超简洁版) 解题思路:注意事项:参考代码:a=int(input())foriinrange(a):b=input()s=b.capitalize()#这是python自带的将首字母大写其他部分小写的函数print(s) 题解列表 2026年09月27日 1 点赞 0 评论 167 浏览 评分:0.0
2858: 整理药名(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) while True: try: s = input() s1 = "" for i in s: …… 题解列表 2023年02月24日 0 点赞 0 评论 674 浏览 评分:9.9
2858: 整理药名 摘要:解题思路:注意事项:参考代码:for i in range(int(input())): print(input().capitalize())…… 题解列表 2024年03月25日 0 点赞 1 评论 609 浏览 评分:10.0