Tomboy521
Tomboy521
全部文章
分类
题解(9)
归档
标签
去牛客网
登录
/
注册
Tomboy521的博客
全部文章
(共6篇)
题解 | #字符子串的查找#
print(input().find("NiuNiu")) # print(input().index("NiuNiu")) # 输入字符串 print(long_str.rfind('NiuNiu')) # 查找字符串里面的字符 # find 查找字符在...
Python3
2022-09-01
2
353
题解 | #牛牛的矩阵相加#
numList = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] # 原始列表 n = int(input()) &...
Python3
2022-08-31
0
124
题解 | #菜品的价格#
dt = {'pizza': 10, 'rice': 2, 'yogurt': 5} temp = input() print(dt.get(temp, 8)) # ...
Python3
2022-08-31
23
474
题解 | #删除简历#
companyList = input().split(' ') # 方法一 # companyList.pop(0) # 方法二 # del companyList[0] # 方法三 companyList....
Python3
2022-08-29
0
207
题解 | #多行输出#
# print("Hello World!\nHello Nowcoder!") print("""Hello World!\n Hello Nowcoder!""") 两种方案: ...
Python3
2022-08-16
0
133
题解 | #[NOIP2010]数字统计#
L, R = [int(x) for x in input().split()] lt = [] for i in range(L, R + 1):...
Python3
字符串
2022-05-13
0
212