-
- 分享
第34讲 动动手第2题
-
黄老师大笨蛋 2023-8-4 10:55
-
s = input('输入:') s_new = s.split() n = len(s_new) result = '' for i in range(n-1,-1,-1): result += s_new + ' ' print(result)
-
1 次阅读|0 个评论
-
- 分享
第33讲 动动手第一题
-
黄老师大笨蛋 2023-8-3 11:57
-
s = input('请输入字符串s:') t = input('请输入字符串t:') t_new = '' for each in t: if each in s and each not in t_new: t_new += each else: continue if t_new == s: print('字符串s是字符串 ...
-
0 个评论
-
- 分享
第32讲动动手第1题
-
黄老师大笨蛋 2023-7-29 15:26
-
word = input('请输入字符串:') _ = 0 result = [] for i in word: num = word.count(i) if num 2: if _ != i: result.append(i) result.append(str(num) ...
-
1 次阅读|0 个评论
-
- 分享
第31讲动动手第2题
-
黄老师大笨蛋 2023-7-28 10:23
-
word = input('输入:') res_1 = res_3 = ) res_3.append(res_2 ) res_3.append(res_1 ) elif len(res_1) len(res_2): for j in range(len(res_1)): res_3.append(res_1 ) res_3.app ...
-
0 个评论
本页有 6 篇日志因作者的隐私设置或未通过审核而隐藏