class className():
def __init__(self, strA, strB):
self.str1 = strA
self.str2 = strB

test = className("Hello", "World!")
print(test.str1)
print(test.str2)

まだselfの意味について理解できていないので教えてください
クラスをインスタンス化したときに引数を設定することでinitが呼び出され、hellwとworld引数が、str1とstr2に代入されるということだと思います

この場合のselfはどんな役割をしているのですか?
selfをはずすと動作はしないようです
init関数自身とは?