3
在ipython(0.10.2)中,我想运行bash shell样式(或glob.glob)扩展。我想要做一些这样的事情,让争论扩大化,就像他们会在bash中一样。这可能吗?从ipython运行glob风格扩展?
filenames = !ls *.sbet
run sbet.py $filenames
# fails because filenames is a list
# or the simpler case:
run sbet.py *.sbet
# failes with "*.sbet" being directly passed in without being expanded.
建议?谢谢!
太棒了,不知道这个关于ipython! :)(要找到所有很酷的东西的一些参考) –
我刚刚在http://ipython.org/ipython-doc/dev/interactive/shell.html看到,也有.p选项,以获得结果为某种“路径对象”,尽管我不知道这意味着什么。 –