Python 基礎(chǔ)教程
Python 100例
題目:畫圖,學(xué)用rectangle畫方形?! ?/p>
程序分析:
rectangle(int left, int top, int right, int bottom)
參數(shù)說明:(left ,top )為矩形的左上坐標(biāo),(right,bottom)為矩形的右下坐標(biāo),兩者可確定一個矩形的大小
以上實例輸出結(jié)果為: