python 小技巧try except 捕捉錯誤時,列印錯誤行數. import sys sys.exc_info() 返回一個tuple,能取得(type, value, traceback)
確定! 回上一頁