This is my code I'm a beginner and I'm coding in PyCharm (Python 3). I built a pong game using the turtle module and it worked fine. Today I wanted to built a football game similar like pong, but I'm trying to make the screen and it opens and instantly closes.. The same happened to me while i tried to use the pygame module. My code is correct, I changed the python interpreter from 3.6 to 3.8 still nothing. Can anyone pls help?
import turtle
my_turtle = turtle.Turtle()
I don't really know your problem but I think you need to initialize the turtle first.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.