Toc
0 results found
Seven Chen
在Shell 脚本里嵌入Python

[shell] #!/bin/bash function pytest() { python - $@ <<EOT import sys,datetime print ‘Current Time is %s’ % datetime.datetime.now() print sys.argv EOT } RT=$(pytest $@) echo my python script says: $RT [/shell]

本文作者:Seven Chen
版权声明:本文首发于Seven Chen的博客,转载请注明出处!