抱歉 ching , 我係一個剛剛學左 python 幾日既新手 !
當用 reload(sys) 時 , 出現 : NameError: name 're ...
impotence 發表於 2022-1-12 14:03


佢講既係python 2
而家python 3唔係咁寫

https://blog.csdn.net/qq_36711420/article/details/79382327
import importlib,sys
importlib.reload(sys)

TOP

佢講既係python 2
而家python 3唔係咁寫


import importlib,sys
importlib.reload(sys) ...
KinChungE 發表於 2022-1-12 14:15


多謝 ching 指導 ! 但係都出現亂碼 ! 有冇其他提議 ? 定係直接放棄 python , 找尋其他 solution ?

TOP

多謝 ching 指導 ! 但係都出現亂碼 ! 有冇其他提議 ? 定係直接放棄 python , 找尋其他 solution ? ...
impotence 發表於 2022-1-12 14:42



    你系mariadb / mysql / sqlite?
用什麼套件? ORM 定 MySQLdb?

TOP

你系mariadb / mysql / sqlite?
用什麼套件? ORM 定 MySQLdb?
shal 發表於 2022-1-12 15:10


Server : Windows 2019 + MSSQL 2012
PC : Windows 7 + VsCode + Python 3.8
action : 將 某個 db 中 的 某個 table 中的某些 資料 轉為 excel 比其他 application 讀取 !

TOP

Server : Windows 2019 + MSSQL 2012
PC : Windows 7 + VsCode + Python 3.8
action : 將 某個 db 中 的 ...
impotence 發表於 2022-1-12 15:22



    XD 我公司都做左呢D 野
你用 pymssql 套件接 MSSQL 2012???

TOP

XD 我公司都做左呢D 野
你用 pymssql 套件接 MSSQL 2012???
shal 發表於 2022-1-12 15:28


係呀 ! 有乜好建議 ?

TOP

XD 我公司都做左呢D 野
你用 pymssql 套件接 MSSQL 2012???
shal 發表於 2022-1-12 15:28


最終結果 , 我可以經 pymssql 攞資料. 之後喺 VsCode 睇就出現亂碼 , 但係經 xlwt 輸出 excel 就可以正常出中文 !
咁即係個 VsCode 唔 support 中文 ?

TOP

各位 ching , 唔好意思 !
我又有新問題 ! 就係點樣可以喺部 windows 2019 server 下 set d python program 做 schedule job , 而且唔可以喺部 server 安裝 python ?

TOP

各位 ching , 唔好意思 !
我又有新問題 ! 就係點樣可以喺部 windows 2019 server 下 set d python program  ...
impotence 發表於 2022-1-12 17:59


亂 up:  有無 .py to .exe 嘅 software?

TOP

各位 ching , 唔好意思 !
我又有新問題 ! 就係點樣可以喺部 windows 2019 server 下 set d python program  ...
impotence 發表於 2022-1-12 17:59



    in develop pc 下 安裝這個 pip install PyInstaller
https://realpython.com/pyinstaller-python/

TOP