社区
脚本语言
帖子详情
python os.system问题?
djstava
2010-05-06 04:01:37
CGI文件test.py
#!/usr/bin/env python
import os
print 'Content-Type:text/html\n'
print
os.system('firefox index.html')
但是在浏览器中打不开index.html?
谢谢。
...全文
154
5
打赏
收藏
python os.system问题?
CGI文件test.py #!/usr/bin/env python import os print 'Content-Type:text/html\n' print os.system('firefox index.html') 但是在浏览器中打不开index.html? 谢谢。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
thy38
2010-05-07
打赏
举报
回复
apache2可能对php支持不好。
djstava
2010-05-07
打赏
举报
回复
问题已经解决,是apache2的问题
huanlanshikong
2010-05-06
打赏
举报
回复
先要确定参数里的命令在cmd里面可以运行,试试
os.system('start firefox index.html')
djstava
2010-05-06
打赏
举报
回复
[Quote=引用 1 楼 tingsking18 的回复:]
firefox的路径没加上
[/Quote]
加上也不起作用。
tingsking18
2010-05-06
打赏
举报
回复
firefox的路径没加上
python
os
.system返回值_
python
os
.system()返回值判断
一、
python
中的
os
.system(cmd)的返回值与linux命令返回值(具体参见本文附加内容)的关系大家都习惯用
os
.systemv()函数执行linux命令,该函数的返回值十进制数(分别对应一个16位的二进制数)。该函数的返回值与 linux...
python
os
.system保存返回值_
python
中
os
.system的返回值
python
中
os
.system()的返回值1、
python
中的
os
.system(cmd)的返回值与linux命令返回值(具体参见本文附加内容)的关系你们都习惯用
os
.systemv()函数执行linux命令,该函数的返回值十进制数(分别对应一个16位的二进制数)...
python
os
.system()和
os
.popen()
python
os
.system()和
os
.popen()
python
中
os
.system.获取输出信息_
python
中
os
.system()的返回值
[
python
中
os
.system()的返回值]如果第三方程序返回...当
python
程序使用
os
.system(”./bin/xxx.py”) 这样调用的时候, 成功运行后
os
.system 的返回值出现了
问题
,变成了256 ,也就是0×100。而不是正常应该返回的1...
python
中
os
.system不打印返回值_
python
中
os
.system()的返回值
[
python
中
os
.system()的返回值]如果第三方程序返回...当
python
程序使用
os
.system(”./bin/xxx.py”) 这样调用的时候, 成功运行后
os
.system 的返回值出现了
问题
,变成了256 ,也就是0×100。而不是正常应该返回的1...
脚本语言
37,720
社区成员
34,239
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章