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!