牛客395278132号
牛客395278132号
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
牛客395278132号的博客
全部文章
(共4篇)
题解 | #牛牛的第二个整数#
a = input() print(a.split()[1]) 将接收到的整数,通过split()方法转换成列表,通过切片方式获取第二个整数。 split():默认使用‘,’分割。
Python3
2022-07-13
3
307
题解 | #拯救被污染的字符串#
my_str='I am$ N$iuniu$, an$d I $am stu$dying in $Now$coder!' my_list=my_str.split("$") print(my_list) print("".join(my_list))
Python3
2022-06-27
0
195
题解 | #发送offer#
offer_list=['Allen', 'Tom'] for i in offer_list: if i=='Allen' or i=='Tom': print(i+", you have passed our i...
Python3
2022-06-24
0
235
题解 | #计算器#
x=int(input()) y=int(input()) if y !=0: print(x+y) print(x-y) print(...
Python3
2022-06-24
4
322