编写题解 1783: 星期判断机(python) 摘要:解题思路:注意事项:参考代码:if __name__ == '__main__': s = ['Monday', 'Tuesday', '…… 题解列表 2023年02月13日 0 点赞 0 评论 389 浏览 评分:0.0
编写题解 1782: 找出最长的字符串来(python) 摘要:解题思路:注意事项:参考代码:if __name__ == '__main__': c = '' length = 0 for i in range(…… 题解列表 2023年02月13日 0 点赞 0 评论 407 浏览 评分:0.0
编写题解 1777: 循环练习之完美数判断(python) 摘要:解题思路:注意事项:参考代码:if __name__ == '__main__': n = int(input()) s = [] for i in range(1,…… 题解列表 2023年02月13日 0 点赞 0 评论 403 浏览 评分:0.0
[编程入门]二进制移位练习-题解(Python代码) 摘要:解题思路: 使用进制转换函数注意事项: 熟记进制转换函数参考代码:if __name__ == '__main__': n = int(input()) t =…… 题解列表 2023年02月13日 0 点赞 0 评论 465 浏览 评分:6.0
python 字符串对比解法(ascll码值) 摘要:S1=input()S2=input()if len(S1)!=len(S2): print(1)else: a=0 b=0 c=0 for i in range(len…… 题解列表 2023年02月12日 0 点赞 0 评论 360 浏览 评分:0.0
python fj字符串解法 简单无列表函数 摘要:N=int(input())s=""#定义一个空字符串for i in range(N): #进行循环拼接 s=s+chr(65+i)+sprint(s)…… 题解列表 2023年02月12日 0 点赞 0 评论 379 浏览 评分:9.9
python简单字符串两个解法 带解析 摘要:# 法1:N=int(input().strip())#输入题目Nfor i in range(N): A=input() #输入字符串 n=1 #记录相邻相同字符的个数 s = "…… 题解列表 2023年02月11日 0 点赞 0 评论 358 浏览 评分:0.0
2803: 整数的个数 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.count(1))print(a.count(5))print…… 题解列表 2023年02月11日 0 点赞 0 评论 480 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 1 点赞 0 评论 1765 浏览 评分:6.0
Python统计数字字符个数 摘要:解题思路:注意事项:参考代码:n=input()count=0for i in n: if i>='0' and i<='9': count+=1p…… 题解列表 2023年02月10日 0 点赞 0 评论 453 浏览 评分:0.0