Mixed programming of batch processing and python code

Source: Internet
Author: User
This article mainly introduces materials related to the batch processing and python code mixed programming methods, which is very good and has reference value, if you are interested, learning batch processing can be easily mixed with other languages for programming. in addition to being fun, it also has considerable practical value, for example, the windows ruby gem package manager uses batch processing and ruby mixed writing. the bathome command toolkit manager bcn uses the bat + jscript mixed compilation.

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. I would like to thank you for your support for PHP chinnet!


For more articles on batch processing and mixed python code programming, please follow the PHP Chinese network!

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.