Python調用:'get_column

  • 2020 年 1 月 13 日
  • 筆記

在學習《Python編程快速上手》12.3.4:列字母和數字之間的轉換 按照書上的程式碼做練習,

結果輸出如下:

ImportError: cannot import name 'get_column_letter' 導入錯誤:不能導入'get_column_letter' 繼續度娘 原來get_column_letter方法已經在openpyxl 的2.4版本中重寫了,從cell移到了utils。 要在openpyxl.utils 中導入才有效果

輸出在下面: