我有一个代码
"if x > 18:\n\tif y > 500000:\n\t\tprint('switch_credit_type')\n\telif y < 50000:\n\t\tif z > 2:\n\t\t\tprint('success')\n\t\telse:\n\t\t\tprint('get_more_info')\n\telse:\n\t\tprint('get_more_info')\nelse:\n\tprint('fail')\n"
有没有办法格式化它并在jupyter单元格中打印,如
"if x > 18:
if y > 500000:
print('switch_credit_type')
elif y < 50000:
if z > 2:
print('success')
else:
print('get_more_info')
else:
print('get_more_info')
else:
print('fail')"