Jupyterで使用するpythonのクラスの例

Jupyterで使用するpythonのクラスの例について記載します。

import common
class this_note(common.notes_settings):
    def __init__(self,nbname="YYMMDD_notename"):
        super().__init__(nbname=nbname)
    def show(self):
        for x in self.__dict__.items():
            print(x)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA