您的位置: 首页 > 文章 > python 网页中插入自己的图片 python 网页中插入自己的图片 分类: 文章 • 2024-07-25 16:50:22 ** python 网页中插入自己的图片 ** 初学python根据这个教程做出来了博客的界面https://blog.****.net/u014793102/article/details/80372815 这个博主用户头像,我使用的是Gravatar来提供,想要换成自己的图片怎么办呢 在和项目同级的位置建立一个.py 文件pip install pillow 运行一下:python setting.py 会出现很多英文码 把这段代码复制下来放到img标签里 运行一下