Following is my code:
test = 'abc'
if True:
raise test + 'def'
And when i run this, it gives me the TypeError
TypeError: exceptions must be old-style classes or derived from BaseException, not str
So what kind of type should the test
be?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…