단순한 얼굴
                                            
                                                
                                                
                                                
                                                
                                                
                                                 4338 단어  pythonprogramming
                    
# simple_face.py
#   Drawing of a simple face
# by: Scott Gordon
from graphics import *
def main():
    win = GraphWin("Face", 300, 300)
    win.setCoords(-3, -3, 3, 3)
    win.setBackground("white")
    center = Point(0, 0)
    head = Circle(center, 2)
    head.setFill("yellow")
    head.draw(win)
    eye = Circle(Point(-1, .50), .25)
    eye.setFill("black")
    eye.draw(win)
    eye2 = eye.clone()
    eye2.move(2,0)
    eye2.draw(win)
    mouth = Line(Point(-1, -.5), Point(1, -.5))
    mouth.setWidth(7)
    mouth.draw(win)
    win.getMouse()
    win.close()
main()
Reference
이 문제에 관하여(단순한 얼굴), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/sagordondev/simple-face-1f3m텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)