Python和C++代码
2026-08-28 11:36:44
发布于:山西
5阅读
0回复
0点赞
Python:
a,b,c = map(int, input().split())
d = int(input())
n = [a,b,c,d]
print(n)
C++
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<"["<<a<<", "<<b<<", "<<c<<", "<<d<<"]";
return 0;
}
这里空空如也







有帮助,赞一个