首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
风成玉笛
获赞
32
粉丝
0
关注
0
看过 TA
47
男
门头沟学院
2026
Python
IP属地:辽宁
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑风成玉笛吗?
发布(169)
评论
刷题
收藏
风成玉笛
关注TA,不错过内容更新
关注
2023-08-22 08:21
门头沟学院 Python
题解 | #小数化整数#
print(int(float(input()))) 套就完事了,没有第一感觉想的那么难
0
点赞
评论
收藏
分享
2023-08-22 08:19
门头沟学院 Python
题解 | #牛牛的小数输出#
n=float(input()) print(f"{n:.2f}") 确定浮点数的书写格式规范即可,其余见前面几道题
0
点赞
评论
收藏
分享
2023-08-22 08:14
门头沟学院 Python
题解 | #格式化输出(一)#
name = input() print('I am {} and I am studying Python in Nowcoder!'.format(name)) 引入输入后分辨槽的位置后,用.format()形式编写即可
0
点赞
评论
收藏
分享
2023-08-22 08:10
门头沟学院 Python
题解 | #读入整数数字#
a=int(input()) print(a) a_type=type(a) print(a_type) 可以用if判断语句,但是我个人感觉有点杀鸡用牛刀了,联系前面几题想到了这个办法。
0
点赞
评论
收藏
分享
2023-08-22 08:02
门头沟学院 Python
题解 | #读入字符串#
s=input() print(s) 没啥好解析的,重在理解题意吧:)
0
点赞
评论
收藏
分享
2023-08-22 07:52
门头沟学院 Python
题解 | #用where过滤空值练习#
select device_id, gender,age,university from user_profile where age is not null; not null 过滤空值, 其余不多做解释。
0
点赞
评论
收藏
分享
2023-08-22 07:49
门头沟学院 Python
题解 | #查找除复旦大学的用户信息#
select device_id,gender,age,university from user_profile where university !='复旦大学'; != 等于 不等于此题也可用 NOT in 的方法去做(个人认为,题目本身一开始估计就是要考NOT in :) )
0
点赞
评论
收藏
分享
2023-08-22 07:44
门头沟学院 Python
题解 | #查找某个年龄段的用户信息#
select device_id,gender,age from user_profile where age>=20 and age<= 23; 用between and 也可以 用法基本一致
0
点赞
评论
收藏
分享
2023-08-22 07:39
门头沟学院 Python
题解 | #查找年龄大于24岁的用户信息#
select device_id,gender,age,university from user_profile where age>24; 条件查询句式:select [distinct] 查询目标 from 表名 where 查询条件
0
点赞
评论
收藏
分享
2023-08-22 07:35
门头沟学院 Python
2023-08-22
在牛客打卡2天,今天也很努力鸭!
每日监督打卡
0
点赞
评论
收藏
分享
2023-08-21 09:13
门头沟学院 Python
2023-08-21
在牛客打卡1天,今天学习:刷题 15 道/代码提交 22 次
每日监督打卡
0
点赞
评论
收藏
分享
2023-08-21 09:04
门头沟学院 Python
题解 | #查找学校是北大的学生信息#
select device_id, university from user_profile where university = '北京大学'; 综合我前两道题即可轻松解答
0
点赞
评论
收藏
分享
2023-08-21 09:02
门头沟学院 Python
题解 | #将查询后的列重新命名#
select device_id as user_infos_example from user_profile limit 0,2; 与上一题大同小异,只是加了个as重命名,需要注意的是as是可以将列名重命名成中文来增加可读性,只不过需要添加引号而且后续维护更加复杂
0
点赞
评论
收藏
分享
2023-08-21 08:54
门头沟学院 Python
题解 | #查询结果限制返回行数#
select device_id from user_profile limit 0,2; 如图是第一种解法也可为:select device_id from user_profile limit 2;(实际上这两种解应该算是同一种)或者条件查询select device_id from user_profile where id <=2;
0
点赞
评论
收藏
分享
2023-08-21 08:48
门头沟学院 Python
题解 | #查询结果去重#
select distinct university from user_profile; 知识点:distinct SQL中的去重关键字加在语句前对搜索内容进行去重。
0
点赞
评论
收藏
分享
1
7
8
9
10
11
12
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务