Em python 2.6 , eu quero fazer:f = lambda x: if x==2 print x else raise Exception() f(2) #should print "2" f(3) #should throw an exception Isso claramente ...
確定! 回上一頁