Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
わかりましたので、基本的には、4 つの個別の変数をすべて同じ値で同時に定義したいと考えています。
これに沿って何かをすることは可能ですか?
a, b, c, d = 4
4 つの変数すべてが個別に 4 に等しい場所は?
次の構文を使用します。
a = b = c = d = 4
デモ:
>>> a = b = c = d = 4 >>> a 4 >>> b 4 >>> c 4 >>> d 4