DWP301_-_RE_-_SU_2023_671.webp
ThanhTam811

DWP301_-_RE_-_SU_2023_671.webp

(Choose 1 answer)
A. drawRectangle
B. import matplotlib
C. class Rectangle
D. plt.axis('scaled')
What is the method defined in the class Rectangle used to draw the rectangle?

Eatt 9
class Rectangle(object):
def_init__(self, width=2, height =3,color='r'):
self.height-height
self.width-width
self.color=color
def drawRectangle(self):
import matplotlib.pyplot as plt plt.gca().add_patch(plt. Rectangle((0, 0), self.width, self.height,fc=self.color))
plt.axis('scaled')plt.show()

Thông tin

Category
DWP301c
Thêm bởi
ThanhTam811
Ngày thêm
Lượt xem
585
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
DWP301_-_RE_-_SU_2023_671.webp
File size
56.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom