ange32
with open("yester.txt","r",encoding="utf-8") as f:
user_dict={}
for userline in f:
userline=str(userline).replace(\'\n\',\'\')
user_dict[userline.split(\' \',1)[0]]=userline.split(\' \',1)[1]


txt文件:
a ah
a ey
cat k ae t
of ah v
peck p eh k
peppers p eh p er z
peter p iy t er
picked p ih k t
pickled p ih k ah l d
piper p ay p er
the dh ah
the dh iy

分类:

技术点:

相关文章:

  • 2021-12-19
  • 2021-09-25
  • 2021-09-25
  • 2022-12-23
  • 2021-07-29
  • 2021-07-06
  • 2021-12-04
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2021-12-03
  • 2021-11-15
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案