python之常见错误提示总结

1. IndentationError: unexpected indent

出现这种错误是因为错误的使用了缩进,在变量age之前使用了缩进,去掉缩进即可解决

2. Line 12: SyntaxError: invalid syntax

语法错误。python会指出出错位置

猜你喜欢

转载自blog.csdn.net/qq_40443457/article/details/87861411