上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 91 下一页
摘要: 查询当天数据 select * from tab where FROM_UNIXTIME(fabutime, '%Y%m%d') = 20121217; mysql TO_DAYS(date) 函数 TO_DAYS(date) 给定一个日期date, 返回一个天数 (从年份0开始的天数 )。 最近一 阅读全文
posted @ 2021-03-16 21:48 多测师_树哥 阅读(240) 评论(0) 推荐(0)
摘要: value = input('请输入您的IP地址:') def foo(name): lists = name.split('.') if len(lists) != 4: return '该IP地址不是合法的' for i in range(4): try: tmp = int(lists[i]) 阅读全文
posted @ 2021-03-16 16:48 多测师_树哥 阅读(218) 评论(0) 推荐(0)
摘要: def foo(value): dict1 = {} a = 0 num =0 for i in range(len(value)): if value[i] in dict1: num = max(dict1[value[i]],num) a = max(i-num+1, a) dict1[val 阅读全文
posted @ 2021-03-16 15:26 多测师_树哥 阅读(168) 评论(0) 推荐(0)
摘要: 第一题: update CAR_RECORD set Car_Color = 'yellow' where Car_Num = "浙A12A26"; 第二题: select Rec_type as '违法类型',count(Rec_Type) as '数量' from CAR_DPRECORD gr 阅读全文
posted @ 2021-03-16 14:28 多测师_树哥 阅读(145) 评论(0) 推荐(0)
摘要: select sex as '性别',count('sex')as '个数' from student where class = 'A' group by sex; 阅读全文
posted @ 2021-03-12 17:48 多测师_树哥 阅读(448) 评论(0) 推荐(0)
摘要: 编写一个程序,将输入字符串中的字符按如下规则排序 规则 1 :英文字母从 A 到 Z 排列,不区分大小写。 如,输入: Type 输出: epTy 规则 2 :同一个英文字母的大小写同时存在时,按照输入顺序排列。 如,输入: BabA 输出: aABb 规则 3 :非英文字母的其它字符保持原来的位置 阅读全文
posted @ 2021-03-12 16:32 多测师_树哥 阅读(1050) 评论(0) 推荐(0)
摘要: 背景: 在做接口自动化时,通常会判断接口返回中的数据信息,与数据库中返回的数据信息是否一致,比如:将接口返回信息的用户姓名存 放到一个列表中,将数据库返回的用户姓名存放到另一个列表中,这时需要判断两个列表是否一致,如果不一致,将不同的元素信息分 别回写到excel文件中,可以一目了然的看出哪些信息返 阅读全文
posted @ 2021-03-12 14:55 多测师_树哥 阅读(482) 评论(0) 推荐(0)
摘要: 答案一: select name from 表名 group by name having min(fenshu)>80; 答案二: select name from 表名 group by name having name not in (select name from 表名 where fen 阅读全文
posted @ 2021-03-11 15:23 多测师_树哥 阅读(241) 评论(0) 推荐(0)
摘要: #coding=utf-8""" Author:杭州多测师_王sirTime:2021-03-09 14:05Wechat:xiaoshubasswebsite:www.duoceshi.cn """ def foo(s): """输入一个字符串,返回一个由这些字符组成的排列组合(递归思想)""" 阅读全文
posted @ 2021-03-11 10:31 多测师_树哥 阅读(174) 评论(0) 推荐(0)
摘要: #定义一个装饰器 #只要你被装饰、那么就相当于这个被装饰的函数的函数名=装饰器(被装饰的函数名) #装饰器的作用: #在不改变原有函数功能的基础之上、给函数增加新的功能 import time def runtime(func): def warper(): before = time.time() 阅读全文
posted @ 2021-03-10 21:43 多测师_树哥 阅读(256) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 91 下一页