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