面试题答案一键面试count = 0 with open('your_file.txt', 'r') as file: for line in file: count += line.count('a') print(count)