Get my National Day avatar

The annual National Day is here. I wish you all a happy holiday. This article teaches you how to use Python to draw a National Day exclusive avatar.


  

1. Effect drawing

  
This is a rendering made by combining the WeChat avatar and the red flag:
  
Insert image description here  
If you need pictures and codes for practice, you can send "National Day avatar" to the official account to get it for free

  
  

2. Implement the code

  
The specific implementation code is as follows:

import os 
from PIL import Image


os.chdir(r'F:\公众号\80_国庆头像\sub') # 设置文件存放的路径。需替换成你的路径
hq_p

Supongo que te gusta

Origin blog.csdn.net/qq_32532663/article/details/133420537
Recomendado
Clasificación