try: raise Exception('二维码已失效') except Exception as e: print(type(e.args[0])) print(e.args[0])