
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
python のクラス - Qiita
class Rectangle: def __init__(self, width, height): self.width = width self.height = height def a... class Rectangle: def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height def main(): rectagle = Rectangle(10, 20) print(f'The value of width is {rectangle.width}') print(f'The value of height is {rectangle.height}') if __name__ '__main__': main()