Directory
- First error
- A second error
- Finally
- Publish with Vscode
Body
Sometimes, we write a Python program, there will always be a variety of errors, when the wine over three rounds, the food five, all the problems have been solved, we want to summarize the mistakes made, in order to query later. When the problem comes, do you want to reproduce it all?
Jupyter's Here! Everything is solved, this is a code camera ah, write code error, a bunch of error hints, it doesn't matter, new insert a cell, write again! Until it's right!
First error
# 假装我不会写helloworldprint hello world
File "<ipython-input-1-e9edef3fb57e>", line 2 print hello world ^SyntaxError: invalid syntax
Go back to the top of a second error
# 难道加个引号?print ‘hello world"
"<ipython-input-2-efbc3c88a80d>", line 2 print ‘hello world" ^SyntaxError: EOL while scanning string literal
What's the situation? No quotes?!
All right, I'm going to write a pair!
Back to the top of the finally
# 这次对了吧?你好!世界!print ‘hello world‘
hello world
OK, write here, the error code has, the error message has, and finally have the correct code, let's Publish a blog!
Publish with Vscode
- Save As MD file
- Vscode Open
- Publish with Writecnblog plugin
First module: Creating a programming environment-creating a versatile python development environment