assertRaises 的用法. import unittest def div(a,b): return a/b class Myfirstunittest(unittest.TestCase): def setUp(self): print 'star'
確定! 回上一頁