Batch Processing and python code mixed programming method, batch processing python

Source: Internet
Author: User

Batch Processing and python code mixed programming method, batch processing python

Batch processing can be easily mixed with other languages for programming. In addition to being fun, batch processing also has considerable practical value. For example, the windows ruby gem Package Manager uses batch processing and ruby mixed compiling, bathome's command toolkit manager bcn uses the bat + jscript mixed encoding implementation.

The cn-dos and bathome forums have successively introduced and demonstrated the mixed programming of batch processing and various language scripts. If you are interested, you can search for them.

Python is not picky about file suffixes. As long as the program contains the correct python code, it can be interpreted and executed using the python interpreter.

The mixed programming method of batch processing and python is simple and saved as xx. bat. The Code is as follows:

": ====================== This is a note: Mixed Programming of batch processing and python programs: May 18, 2016 14:26:03 codegay:: Write the batch processing code @ echo off & clsecho batch echopython.exe % 0 & pause :: ======================= this is the comment "# Write Your python code print (" python print ") below ") # If you need python to output Chinese characters, you need to save the file as UTF8print ("Chinese ")

The above is a small Editor to introduce you to the batch processing and python code mixed programming method related knowledge, I hope to help you, if you have any questions, please leave a message, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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: 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.