在python中用Graphics繪圖怎么上色?
# coding:utf8
from Graphics import *
win = GraphWin()
pt = Point(75, 50) # 設定圓心
pt.draw(win)
cir = Circle(Point(150, 50), 25) # 設定圓形
cir.draw(win)
cir.setFill('blue') # 給圓形上色
cir = Circle(pt, 25) # 設定圓形
cir.draw(win)
cir.setFill('blue') # 給圓形上色
retl = Rectangle(pt,Point(150,100)) # 設定矩形
retl.draw(win)
retl.setFill('blue') # 給矩形上色
import time
time.sleep(5)