首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
Pony泡尼
获赞
0
粉丝
0
关注
0
看过 TA
3
男
University of Wollongong
2022
游戏后端
IP属地:河南
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑Pony泡尼吗?
发布(33)
评论
刷题
收藏
Pony泡尼
关注TA,不错过内容更新
关注
2024-02-04 14:01
University of Wollongong 游戏后端
题解 | #修改属性2#
class Employee(object): def __init__(self,name,salary) -> None: self.name = name self.salary = salary def printclass(self): print("{}'salary is {}, and his age is {}".format(self.name,self.salary,self.age)) name = input() salary = int(input()) age = int(input()) e = Employee(name,salary...
Python刷题
0
点赞
评论
收藏
分享
2024-02-04 14:01
已编辑
University of Wollongong 游戏后端
题解 | #增加元组的长度#
import sys list1 = tuple(range(1,6)) list2 = tuple(range(6,11)) list3 = list1+list2 print(list1,len(list1),list3,len(list3),sep='\n')
Python刷题
0
点赞
评论
收藏
分享
2024-02-04 14:02
已编辑
University of Wollongong 游戏后端
题解 | #名单中出现过的人#
import sys lst = tuple(['Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna']) # print(lst) # if input() in lst: # print('Congratulations!') # else: # print('What a pity!') print(lst,'Congratulations!' if input() in lst else 'What a pity!',sep='\n')
Python刷题
0
点赞
评论
收藏
分享
2024-02-04 14:02
已编辑
University of Wollongong 游戏后端
题解 | #输出前三同学的成绩#
import sys name_list = tuple(input().split()) print(name_list[0:3])
Python刷题
0
点赞
评论
收藏
分享
2024-02-04 14:02
已编辑
University of Wollongong 游戏后端
题解 | #修改报名名单#
import sys entry_form = ('Niuniu','Niumei') print(entry_form) try: entry_form[1] = 'Niukele' except TypeError: print('The entry form cannot be modified!')
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 16:34
University of Wollongong 游戏后端
题解 | #运动会双人项目#
import sys print((input(),input()))
0
点赞
评论
收藏
分享
2024-02-03 16:05
University of Wollongong 游戏后端
题解 | #牛牛的矩阵相加#
import sys lst = [[1,2,3],[4,5,6],[7,8,9]] n = int(input()) lst1 = [[x*n for x in lst[0]],[y*n for y in lst[1]],[z*n for z in lst[2]]] print(lst1)
0
点赞
评论
收藏
分享
2024-02-03 15:34
University of Wollongong 游戏后端
题解 | #跳过列表的某个元素#
import sys for i in range(1,16): if i == 13: continue else: print(i,end=" ")
0
点赞
评论
收藏
分享
2024-02-03 15:29
University of Wollongong 游戏后端
题解 | #提前结束的循环#
import sys x = int(input()) num_list = [3,45,9,8,12,89,103,42,54,79] for i in num_list: if i == x: break else: print(i)
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 15:13
University of Wollongong 游戏后端
题解 | #找到HR#
import sys users_list = ['Niuniu','Niumei','HR','Niu Ke Le','GURR','LOLO'] for name in users_list: if name == 'HR': print('Hi, HR! Would you like to hire someone?') else: print('Hi, {}! Welcome to Nowcoder!'.format(name))
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 14:56
University of Wollongong 游戏后端
题解 | #列表解析#
import sys print(list(range(10)))
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 14:55
University of Wollongong 游戏后端
题解 | #2的次方数#
import sys my_list = list() for i in range(1,11): my_list.append(2**i) for i in my_list: print(i)
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 14:50
University of Wollongong 游戏后端
题解 | #被5整除的数字#
import sys my_list = list(range(5,51,5)) for i in range(len(my_list)): print(my_list[i])
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 14:43
University of Wollongong 游戏后端
题解 | #前10个偶数#
import sys my_list = list(range(0,20,2)) for i in my_list: print(i)
Python刷题
0
点赞
评论
收藏
分享
2024-02-03 14:40
University of Wollongong 游戏后端
题解 | #累加数与平均值#
import sys for i in sys.stdin: age = list(map(int,i.split())) sum_age = sum(age[0:]) print(sum_age,'%.1f'%(sum_age/len(age)),sep=' ')
Python刷题
0
点赞
评论
收藏
分享
1
2
3
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务