您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何从Python以隐身模式打开Chrome

如何从Python以隐身模式打开Chrome

使用该os模块执行命令。

import os
os.system("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -ArgumentList @( '-incognito', 'www.foo.com'" )
@H_403_7@

有关更多信息,请 参见此处

解决方法

这在Powershell中有效:

Start-Process chrome.exe -ArgumentList @( '-incognito','www.foo.com' )

如何通过Python实现?

喜欢与人分享编程技术与工作经验,欢迎加入编程之家官方交流群!
Start-Process chrome.exe -ArgumentList @( '-incognito','www.foo.com' )

有关更多信息,请 参见此处

这在Powershell中有效:

如何通过Python实现?

有关更多信息,请 参见此处

python 2022/1/1 18:53:12 有505人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶