擅长:python、mysql、java
<p>或者创建一个兼作python脚本的.BAT文件:</p>
<pre><code>@echo off
rem = '''
echo This is "%~f0" before Python
python -x "%~f0" %*
echo This is "%~f0" after Python
goto :end
'''
print " - Python code starts here "
import sys
print sys.path
print sys.argv
print " - Python code ends here "
rem = '''
:end
rem '''
</code></pre>