575 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			575 B
		
	
	
	
	
	
	
	
id, title, challengeType, videoId, bilibiliIds, dashedName
| id | title | challengeType | videoId | bilibiliIds | dashedName | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5e7b9f160b6c005b0e76f086 | 对象:一个示例类 | 11 | FiABKEuaSJ8 | 
 | objects-a-sample-class | 
--question--
--text--
以下程序将打印什么?
class PartyAnimal:
    x = 0
    def party(self):
        self.x = self.x + 2
        print(self.x)
an = PartyAnimal()
an.party()
an.party()
--answers--
So far 1 So far 2
0 0
2 2
2 4
--video-solution--
4