Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/342.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在python脚本中读取html模板?_Python_Html - Fatal编程技术网

如何在python脚本中读取html模板?

如何在python脚本中读取html模板?,python,html,Python,Html,我有一个名为html_form.py的文件,其中包含我希望用于python中cgi脚本输出的html,即hw.py。但是,我不知道如何在hw.py中调用它。建议?感谢您在hw.py中写下: import html_form

我有一个名为html_form.py的文件,其中包含我希望用于python中cgi脚本输出的html,即hw.py。但是,我不知道如何在hw.py中调用它。建议?感谢您在hw.py中写下:

import html_form