怎樣用python寫HIve的delimiter: ^A

以下在Python 2.7,MacOS上試過

f = open('ctrla.txt', 'w')
f.write('abc')
f.write(u'\u0001')
f.write('35')
f.close()
vim ctrla.txt

  1 abc^A35

本文鏈接

Leave a Comment

Your email address will not be published.