with open(r'C:\Users\MacBooK\Desktop\222.txt') as file_object:
connect = file_object.read()
print(connect)
print('系统报告:可正常读取')
path = r'C:\Users\MacBooK\Desktop\111.txt'
with open(path, 'rb') as file_object:
connects = file_object.read().split()
print(connects)
for connect in connects:
print('{}-{} time'.format(connect, connects.count(connect)))
print('系统报告:可正常读取') # 警告:读取为非原文