[Python] python引入非内置模块的try语句保护方法 →→→→→进入此内容的聊天室

来自 , 2019-10-16, 写在 Python, 查看 100 次.
URL http://www.code666.cn/view/3d773b5c
  1. try:
  2.     import win32com.client
  3. except ImportError:
  4.     raise ImportError, 'This program requires the win32all extensions for Python. See http://starship.python.net/crew/mhammond/win32/'
  5.  

回复 "python引入非内置模块的try语句保护方法"

这儿你可以回复上面这条便签

captcha