关于python开发web中插入本地图像和连接本地的html文件的方法

问题一、插入本地图像html (1)app = flask.Flask(__name__,static_url_path="***",static_folder="***"),其中星号位置是你制定的一个文件夹,一般设定为相同的文件夹 flask (2)<img src="****" />,其中星号位置为上一步指定的文件夹的路径中图像的绝对路径。app 问题二、插入本地的html文件url 加入我要
相关文章
相关标签/搜索