[英]How to open an specific section of a chm file in Python?
如何使用Python在特定部分打開.chm幫助文件? 其實我用以下函數打開文件:
def help(self):
# Open the help file
os.startfile( os.getcwd()+"/config/help.chm")
其他消化:
subprocess.Popen("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")
我找到了一種方法,但與Windows中的hh程序更相關:
我的幫助文件是使用生成chm文件的程序chmprocessor生成的,我生成了一個hhk文件(包含引用)。 使用此文件,我使用以下代碼
def help(self)
os.system("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")
我認為這是方法,如果有另一種簡單的方法。 請告訴我。
問候
德語
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.