Conversion between Python2 and Python3

Source: Internet
Author: User

Because the online teaching materials 2, 3 mixed, always want to follow the others a stroke of doing, so for the environment there is almost obsessive-compulsive requirements. Beginners, no special research version of the difference, and compatibility issues, directly to do is.

Since the first habit problem, has been the most stupid way to learn Python, manual setup is cumbersome to simply write a batch, one key to solve the problem of the environment.

Python27,python34, editor with the Gvim, on the gvim to have a Python-based settings just good, online a lot of tutorials.

@echo Offecho==============================echo Input Number:2, enter the PYTHON27 environment echo input number:3, enter the PYTHON34 environment echo==============================Set/P vp=Please enter a number:if/I%vp%=="2" GotoV2if/I%vp%=="3" GotoV3:v2Setpath=c:\python27\; c:\python27\scripts;%path%start cmd/k Pythonstart cmd/k Gvimexit:v3Setpath=c:\python34\; c:\python34\scripts;%path%start cmd/k Pythonstart cmd/k Gvimexit:: The following two lines are useless, debug command line use::p ause>Nul::exit

Save as a bat file.

The original system environment variable contains the path of the Gvim, so there is no change here.

Of course, Python, and vim installation path is not the same, need targeted modification.

Pending improvement ....

Conversion between Python2 and Python3

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.