ac of python
2024-11-08 18:19:24
发布于:浙江
1阅读
0回复
0点赞
ys=input().strip()
hash_positions = []
for i in range(len(ys)):
if ys[i] == '#':
hash_positions.append(i)
zl = ""
for i in range(0, len(hash_positions), 2):
start = hash_positions[i] + 1
end = hash_positions[i + 1]
zl += ys[start:end]
print(zl)
这里空空如也
有帮助,赞一个