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.
あるクラスの Livewires の Sprite オブジェクトの 'top' プロパティを別のクラスから参照する方法がわかりません??
Spriteそれがあなたが扱っているクラスであると仮定して...
Sprite
オブジェクト属性にアクセスする方法は次のとおりです。
>>> a = Sprite() >>> a.top
クラス属性にアクセスする方法は次のとおりです。
>>> Sprite.top
これはあなたが探しているものですか?