题解 | #统计字符#
统计字符
https://www.nowcoder.com/practice/4ec4325634634193a7cd6798037697a8
while True: try: obj=input() tdata=input() for i in range(len(obj)): count=tdata.count(obj[i]) print(f'{obj[i]} {count}') except EOFError: break
统计字符
https://www.nowcoder.com/practice/4ec4325634634193a7cd6798037697a8
while True: try: obj=input() tdata=input() for i in range(len(obj)): count=tdata.count(obj[i]) print(f'{obj[i]} {count}') except EOFError: break
相关推荐