不精独乐乐
不精独乐乐
全部文章
分类
归档
标签
去牛客网
登录
/
注册
不精独乐乐的博客
全部文章
(共156篇)
题解 | #前10个偶数#
a = list(range(0,20,2)) for j in a: print(j)
2023-03-12
0
167
题解 | #列表的最大与最小#
a = [i for i in range(10,51)] print(a) print(a[0],a[-1],sep=' ')
2023-03-12
0
227
题解 | #字符列表的长度#
a = list('Python') print('Here is the original list:\n{}\n\nThe number that my_list has is:\n{}'.format(a,len(a)))
2023-03-12
0
175
题解 | #统计活跃间隔对用户分级结果#
#思路:用每个用户最早、最晚两个活跃时间与划分标准进行判断并分类即可。 with tb1 as( select uid, date(in_time) dt from tb_user_log union all select uid, date(out_time) dt fr...
2023-03-12
0
190
题解 | #2021年11月每天新用户的次日留存率#
with tb1 as( select uid, date(in_time) dt from tb_user_log union all select uid, date(out_time) dt from tb_user_log) select tb3.dt, round...
2023-03-11
0
214
题解 | #菜品的价格#
#输入牛妹点的任意食物,输出这顿饭钱。如点了pizza,rice,cola,输出20元。 a = input().split() b = {'pizza':10,'rice':2,'yogurt':5,'else':8} c = [] d = ['pizza','rice','yogurt'] fo...
2023-03-11
0
251
题解 | #禁止重复注册#
a = ['Niuniu','Niumei','GURR','LOLO'] b = ['GurR','Niu Ke Le','LoLo','Tuo Rui Chi'] c = [i.lower() for i in a] d = [j.lower() for j in b] for ii in d:...
2023-03-11
0
163
题解 | #判断列表是否为空#
#if判断的对象可以是非空/空的数组,若非空则判断为True,空则判断为False a = [] if a: #也可写为 #if a is True: print('my_list is not empty!') else: print('my_list is empty!')
2023-03-11
0
155
题解 | #判断布尔值#
a = bool(int(input())) if a is False: print('Erros!') else: print('Hello World!')
2023-03-11
0
223
题解 | #近一个月发布的视频中热度最高的top3视频#
with tb1 as( select *, max(end_time)over() a, datediff(max(end_time)over(),max(end_time)over(partition by video_id)) b, timestampdiff(sec...
2023-03-10
1
253
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页