First module: Creating a programming environment-creating a versatile python development environment

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.