tuple()で、さまざまな型をタプルに変換できる。
とほほのPython入門 - リスト・タプル・辞書 - とほほのWWW入門
これもtuple関数ではなく、tupleクラスの引数付きコンストラクタ。
リストをタプルに変換。
class_tuple.pyで、
とすると、
![こうなる](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20230715/20230715140605.png)
こうなる。
Sample/python/class_tuple/class_tuple/src/class_tuple at master · bg1bgst333/Sample · GitHub
tuple()で、さまざまな型をタプルに変換できる。
とほほのPython入門 - リスト・タプル・辞書 - とほほのWWW入門
これもtuple関数ではなく、tupleクラスの引数付きコンストラクタ。
リストをタプルに変換。
class_tuple.pyで、
とすると、
こうなる。
Sample/python/class_tuple/class_tuple/src/class_tuple at master · bg1bgst333/Sample · GitHub