Hints invalid syntax in Python summary

Source: Internet
Author: User

Record syntax errors in pits

1. Trapped in 1, using notepad++, format display does not match the actual, reported invalid syntax error

Use text format to execute a file, always prompt

Find the reason, because the file is always written with the text file code, after changing the suffix of the file, the default open mode is notepad++, after modifying the code, directly run, has been prompted syntax error, a long time, in the console, the output code is normal, why the file mode of operation will be error, Want to open in a text file

Open a look, the text file display format is really very different,

notepad++ Display

The actual format shown in the text file is

Hints invalid syntax in Python summary

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.