jackfrued / Python-100-Days

Python - 100天从新手到大师
158.34k stars 52.54k forks source link

DAY1 Code Flag.py在ubuntu22.04执行时五角星内部仍然为黄色填充。请问该如何解决? #984

Open liteParklee opened 1 year ago

liteParklee commented 1 year ago

rt

ggggggggggggg1 commented 1 year ago

To fix the issue of the pentagon star still being filled with yellow color when running "Flag.py" on Ubuntu 22.04, you can follow these steps:

Check the code to ensure that the fill color of the pentagon star is correctly set.

Verify if your operating system supports drawing and filling pentagon stars with different colors.

Update your operating system and graphics library using the commands "sudo apt update" and "sudo apt upgrade".

Verify that your graphics library is properly installed and configured according to the official documentation.

Consider using alternative graphics libraries or tools like matplotlib or PIL (Python Imaging Library) to draw the pentagon star.

If the problem persists, please provide more details and error messages so that I can assist you further.