Print error Z caused by Python version

Source: Internet
Author: User

Recently, Baidu index has changed to a version, and many index query tools are useless. After waiting for half a month, I haven't heard of anything. Changtian blog intends to use python to implement a simple function index query tool. I downloaded Python 3.1.2 from the Internet. After the installation, it was dizzy that print 'Hello world' could not be executed. There are countless doubts in your mind.

So I made another English version, which is still the same. Unfortunately, the official download page is in harmony.

I checked it online and found that it was a version issue. from 3.0, Python's print was changed to function form, print ("Hello World"), OK.

I don't understand the reasons for this change. No, it's no fault. It went out 3.0 two years ago, and the change was not small. Dizzy!

 

Original blog, reproduced: http://www.changtianblog.com/post/189.html

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.