文中python源码 os.system支持变量吗?,pythonos.system,def readHtml
文中python源码 os.system支持变量吗?,pythonos.system,def readHtml
def readHtmlName(dir,filename): os.system("ls %s' > %s") % (dir,filename)>>> readHtmlName("/root/bet/urls","/root/bet/fileNames.txt")sh: -c: line 0: unexpected EOF while looking for matching `''sh: -c: line 1: syntax error: unexpected end of fileTraceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in readHtmlNameTypeError: unsupported operand type(s) for %: 'int' and 'tuple'
应该怎么写呢?求指教~
os.system("ls %s > %s" % (dir,filename) )
编橙之家文章,
相关内容
- Python调用包文件内某个方法的小问题,python调用包文件
- python下高效支持大数据量database2 exce的解决方案,data
- 新手对python default不是很理解它有什么用途,pythondefa
- 如何在python scrapy中带cookie进行访问?,pythonscrapy,简单
- python urllib2.HTTPError: HTTP Error 400: Bad Request 出错,,新手这
- 两个py文章互相引用时报Exception'module' object has no attri
- 需要一些不是固定的IP VPN账号去哪找,vpn账号,请问哪里
- 为什么Python打包整数得到二进制字符串,python二进制
- Python最轻量代码实现WIKI内链接方法,pythonwiki,不管用什
- 请python高手帮我看段正则匹配的问题,python段正,re_qb
评论关闭