出错:(unicode error) 'unicodeescape' codec can't decode bytes in position 8-9: malformed \N character escape

报错原因:python 中 \N 是换行的意思。这里要把 N 前面的 \ 转义一下。用  \\  代替即可。

Nokia_mac = np.loadtxt('data\oui\\NokiaMac2018.txt', encoding='utf-8', dtype='str')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-01-12
  • 2021-07-14
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-07-24
  • 2021-05-12
  • 2022-12-23
  • 2021-04-22
相关资源
相似解决方案