本文例項講述了Python中unittest的用法,分享給大家供大家參考。 ... assertRaises(TypeError, random.shuffle, (1,2,3)) def test_choice(self): ...
確定! 回上一頁