在IronXL for Python中應用授權金鑰

This article was translated from English: Does it need improvement?
Translated
View the article in English

授權金鑰是一個以過期日期結尾的長字串。 請確保正確複製,且無空格。

# Apply the license key to the IronXL library
# Replace 'YOUR_LICENSE_KEY' with your actual license key string
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
# Apply the license key to the IronXL library
# Replace 'YOUR_LICENSE_KEY' with your actual license key string
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
PYTHON

應用授權金鑰最穩健的方法是直接在您的程式碼中設定,於程式庫被調用之前。

# Set the license key for the IronXL library at the start of your program
# This helps to ensure that the library recognizes your license as soon as it is needed
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
# Set the license key for the IronXL library at the start of your program
# This helps to ensure that the library recognizes your license as soon as it is needed
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
PYTHON

有關更多選項,包括通過appsettings.json配置,請參閱以下的常見問題頁面以獲得更多資訊:

IronXL授權金鑰 - 常見問題

Curtis Chau
技術作家

Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。

除了開發,Curtis對物聯網(IoT)有濃厚的興趣,探索創新的方法來整合硬體和軟體。在空閒時間,他喜歡玩遊戲和建立Discord機器人,結合他對技術的熱愛與創造力。

準備好開始了嗎?
版本: 2026.6 剛剛發布
Still Scrolling Icon

仍在捲動?

想要快速證明嗎?
執行範例 觀察您的資料成為電子表格。