search

Home  >  Q&A  >  body text

python3.X 二进制字符串的问题

PHPzPHPz2898 days ago543

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:05:49

    "b'10/31/2016'" str, b'10/31/2016' 是 字符串 '10/31/2016'的binary格式,所以还是处理下数据吧,可以用loadtxt中的converters参数,re.sub("b|'", '', first_field)b 和里面的'Replace the key and then convert the date

    reply
    0
  • Cancelreply