bound tag

1 questions


1 answers
109 views
0
What is the difference between writing and not writing self in the class method?

When I made the code in Faicham, they automatically put self on itWhy are you doing this?I wonder what role self plays, so if you take out self, there will be an error.class Test(object): def method_o...


© 2024 OneMinuteCode. All rights reserved.