tag:crieit.net,2005:https://crieit.net/boards/study-note/feed 「学習ノート」の投稿 - Crieit Crieitで「学習ノート」ボードに投稿された最近の投稿 2021-05-05T11:08:28+09:00 https://crieit.net/boards/study-note/feed tag:crieit.net,2005:PublicArticle/bafe6636715fb5b1326e7455f863c3ac 2021-05-05T11:04:29+09:00 2021-05-05T11:08:28+09:00 https://crieit.net/boards/study-note/bafe6636715fb5b1326e7455f863c3ac Pythonでスーパークラスを確認する方法 <ul> <li><p>Pythonでスーパークラスを取得する方法:super()<br /> <a target="_blank" rel="nofollow noopener" href="https://uxmilk.jp/15665">https://uxmilk.jp/15665</a></p></li> <li><p>Pythonでサブクラス・スーパークラスを確認(issubclass(), <strong>mro</strong>など) | note.nkmk.me<br /> <a target="_blank" rel="nofollow noopener" href="https://note.nkmk.me/python-issubclass-mro-bases-subclasses/">https://note.nkmk.me/python-issubclass-mro-bases-subclasses/</a></p></li> </ul> mkataoka73 tag:crieit.net,2005:PublicArticle/01023f99a0da0d01c9cba058cf5cbb75 2021-05-05T10:34:45+09:00 2021-05-05T10:43:02+09:00 https://crieit.net/boards/study-note/01023f99a0da0d01c9cba058cf5cbb75 Pythonのhelp()メソッド <p>PythonのReplで<code>help(method_name)</code>と入力すると、そのメソッドのマニュアルを表示してくれることがわかった。</p> <pre><code class="bash"># Python 3.6.5 Repl # replで help(method_name)を入力 >>> help(type) # 表示 class type(object) | type(object_or_name, bases, dict) | type(object) -> the object's type | type(name, bases, dict) -> a new type ... </code></pre> <p>表示はless形式、上下で移動し、抜けるときは<code>q</code>キー。</p> mkataoka73