我正在使用MRJob产生值并将它们写入文件...
我有以下内容,其中我产生了一个字符串(boom)作为键,并产生了一个int(sum)作为值:
boom = str(", ".join(key)).strip('"')
yield boom, sum
但是我得到一个输出,该输出在字符串周围写引号(“)。如何在没有引号的情况下写这些字符串?
这是我的输出:
Running step 1 of 2...
Creating temp directory /tmp/flight.edd5103.20190209.202746.795079
Running step 2 of 2...
job output is in /tmp/flight.edd5103.20190209.202746.795079/output
Streaming final output from /tmp/flight.edd5103.20190209.202746.795079/output...
"Canada, France" 24
"Mexico, France" 18
"United States, France" 30
"United States, Germany" 10
Removing temp directory /tmp/flight.edd5103.20190209.202746.795079...