Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save FGFW/c8e97b6e43f9b7cb5e7ca5e771c5738b to your computer and use it in GitHub Desktop.

Select an option

Save FGFW/c8e97b6e43f9b7cb5e7ca5e771c5738b to your computer and use it in GitHub Desktop.
批处理与python程序的混合编程.bat
"""
::=================这是注释
::批处理与python程序的混合编程.bat
::2016年5月18日 14:26:03 codegay
::下面写批处理代码
@echo off&cls
echo batch echo
python.exe %0&pause
::=================这是注释
"""
#下面写你的python代码
print("python print")
#如果需要python输出中文,需要把文件存为UTF8
print("中文")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment