如何使用特殊字符在unix中分割
这个问题在这里已经有了答案:
$ python -c "import os; base, ext = os.path.splitext(os.path.basename('/home/user/pigscripts/abc.pig')); print base"
pig
链接地址: http://www.djcxy.com/p/57097.html
这个问题在这里已经有了答案:
$ python -c "import os; base, ext = os.path.splitext(os.path.basename('/home/user/pigscripts/abc.pig')); print base"
pig
链接地址: http://www.djcxy.com/p/57097.html