Difference between turtle and Turtle?

后端 未结 5 999
粉色の甜心
粉色の甜心 2021-01-22 20:16

How are turtle and Turtle different from each other in python version 2.7?

import turtle
star = turtle.Turtle()
for i in ran         


        
5条回答
  •  终归单人心
    2021-01-22 20:41

    Simply put, turtle is the package or library and Turtle() class constructor method used to instantiate the class.

提交回复
热议问题