要讀一個csv format的字串而不是檔案需要透過 StringIO ,也就是將string當成檔案。在python2和python3稍微有點差別: try: # for Python 2.x from StringIO import ...
確定! 回上一頁