已注销
已注销
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
已注销的博客
全部文章
(共5篇)
题解 | #密码验证合格程序#
python-写三个判断函数即可。 while True: def test_1(s): # 判断长度 ...
2021-07-24
6
617
题解 | #参数解析#
通过简单的判断语句,优化双循环,大大降低运行时间。 while True: try: n = int(input()) &n...
2021-07-20
0
268
题解 | #参数解析#
# 写一个冒泡搞定 def maopao(lenth, list1, flag): for i in range(lenth):  ...
python写个排序函数
2021-07-01
0
333
题解 | #参数解析#
首先把输入的str转化为list 然后把所有间隔符转化为同一种间隔符——空格。 然后重新拼接为str 然后用split将其转为去除空格的list,并颠倒顺序 a = list(input()) # list for&n...
2021-06-30
1
500
题解 | #参数解析#
a = input().split() # 去掉空格result = []i = 0while i <len(a): if a[i].count('"') == 1: # 单边包含引号,说明引号内包含空格 string = a[i].replace('&quo...
2021-06-30
0
367