Home > Q&A > body text
怪我咯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
"b'10/31/2016'"
str
b'10/31/2016'
binary
loadtxt
converters
re.sub("b|'", '', first_field)
b
'