处理声音是百度云的 appid 、apikey secretkey 要填写吗?如何获得?
处理word的例子第一个例子:
Traceback (most recent call last):
File "D:\PYTHON\python385\Python编程锦囊\Code(实例源码及使用说明)\Code(实例源码及使用说明)\06\01\wordtopdf.py", line 72, in <module>
valueList = wordtopdf(filelist,targetpath) # 实现将Word文档批量转换为PDF
File "D:\PYTHON\python385\Python编程锦囊\Code(实例源码及使用说明)\Code(实例源码及使用说明)\06\01\wordtopdf.py", line 36, in wordtopdf
gencache.EnsureModule('{00020905-0000-0000-C000-000000000046}', 0, 8, 4)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\gencache.py", line 518, in EnsureModule
module = MakeModuleForTypelib(typelibCLSID, lcid, major, minor, progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\gencache.py", line 287, in MakeModuleForTypelib
makepy.GenerateFromTypeLibSpec( (typelibCLSID, lcid, major, minor), progressInstance=progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\makepy.py", line 223, in GenerateFromTypeLibSpec
tlb = pythoncom.LoadRegTypeLib(typelibCLSID, major, minor, lcid)
pywintypes.com_error: (-2147319779, '库没有注册。', None, None)如第二个:Traceback (most recent call last):
File "D:\PYTHON\python385\Python编程锦囊\Code(实例源码及使用说明)\Code(实例源码及使用说明)\06\01\wordtopdf.py", line 72, in <module>
valueList = wordtopdf(filelist,targetpath) # 实现将Word文档批量转换为PDF
File "D:\PYTHON\python385\Python编程锦囊\Code(实例源码及使用说明)\Code(实例源码及使用说明)\06\01\wordtopdf.py", line 36, in wordtopdf
gencache.EnsureModule('{00020905-0000-0000-C000-000000000046}', 0, 8, 4)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\gencache.py", line 518, in EnsureModule
module = MakeModuleForTypelib(typelibCLSID, lcid, major, minor, progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\gencache.py", line 287, in MakeModuleForTypelib
makepy.GenerateFromTypeLibSpec( (typelibCLSID, lcid, major, minor), progressInstance=progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden)
File "D:\PYTHON\python385\lib\site-packages\win32com\client\makepy.py", line 223, in GenerateFromTypeLibSpec
tlb = pythoncom.LoadRegTypeLib(typelibCLSID, major, minor, lcid)
pywintypes.com_error: (-2147319779, '库没有注册。', None, None)
>>>是什么出问题了?