![](https://s.togetter.com/static/web/img/placeholder.gif)
ノンプロ研 Python中級講座2期 #2「オブジェクトとクラス その1」
コミュニティ「ノンプログラマーのためのスキルアップ研究会」Python中級コース第2期第2回のツイートまとめです。
今回のテーマは「オブジェクトとクラス その1」です。
![](https://s.togetter.com/static/web/img/placeholder.gif)
selfはthisってことですね 仮引数に入れるのがチョットチガウ 名前はselfじゃなくてもいいみたい #ノンプロ研 #中級Python講座
2023-10-06 21:15:51![](https://s.togetter.com/static/web/img/placeholder.gif)
メソッド #ノンプロ研 #中級Python講座 オブジェクトの持つ関数 pic.twitter.com/Srcpwk1jMI
2023-10-06 21:24:37![](https://s.togetter.com/static/web/img/placeholder.gif)
![](https://s.togetter.com/static/web/img/placeholder.gif)
selfってなんか不思議な挙動するな… __init__にself渡さないとエラー __init__にself以外の名前で仮引数を渡しても、メソッドからはselfで参照できる いろいろ試してみたい #ノンプロ研 #中級Python講座
2023-10-06 21:31:49![](https://s.togetter.com/static/web/img/placeholder.gif)
「拡張性があるので、複数要素のあるものはクラス化するのがおすすめです。」 確かに、Pythonのクラスはとっても読みやすいw #ノンプロ研 #中級Python講座
2023-10-06 21:33:37![](https://s.togetter.com/static/web/img/placeholder.gif)
initは厳密にはconstructorではなくinitializer インスタンスを作るものではなく、作ったあとに処理するもの #ノンプロ研 #中級Python講座
2023-10-06 21:37:51![](https://s.togetter.com/static/web/img/placeholder.gif)
なにかとPython、GAS(JS)、VBAの違いの話になりがちで楽しんでいます😎 #ノンプロ研 #中級Python講座
2023-10-06 21:40:41![](https://s.togetter.com/static/web/img/placeholder.gif)
なーさんの質問ナイスです! Pythonでクラスの中のインスタンス変数について 「プロパティと呼ぶことはありますか??」 →回答は後ほど!! #ノンプロ研 #中級Python講座
2023-10-06 21:40:54![](https://s.togetter.com/static/web/img/placeholder.gif)
「Pythonってほんとに自由で」 「そこ制限しないでいいのかって話によくなるんだけど」 「まぁみんな大人だから」 "みんな大人だから" byホッタ先生 #ノンプロ研 #中級Python講座
2023-10-06 21:46:51