LoginSignup
0
0

More than 1 year has passed since last update.

import と from

Posted at

importとfrom

import <module>
from <module> import <method or 変数 or classobj>

class内の変数について
class変数とインスタンス変数がある。


インスタンス化しても、しなくても、クラス内のメソッドは使える。
インスタンス名.メソッド(引数)
クラス名.メソッド(引数)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0