python 网页中插入自己的图片

**

python 网页中插入自己的图片

**

初学python根据这个教程做出来了博客的界面https://blog.****.net/u014793102/article/details/80372815

python 网页中插入自己的图片

这个博主用户头像,我使用的是Gravatar来提供,想要换成自己的图片怎么办呢

在和项目同级的位置建立一个.py 文件
pip install pillow
python 网页中插入自己的图片
运行一下:python setting.py

python 网页中插入自己的图片
会出现很多英文码

把这段代码复制下来放到img标签里

python 网页中插入自己的图片
运行一下
python 网页中插入自己的图片