用c++打开网站的代码如下 #include<bits/stdc++.h> using namespace std; int main(){ system("start https://网站名"); } 注意:只用于c++!