《py++》
2026-01-03 19:55:01
发布于:香港
窝学的C++有点怪啊
#import<iostream>
#import<algorithm>
using namespace std;
def mian():
int arr={1,2,3,4,5};
arr.sort(arr+0,arr+5,reverse=true); //Python里的sort
for(int i in arr):
cout<<i<<end=' ';
return 0;
全部评论 1
你的代码块用的类型是python还是cpp
2026-01-18 来自 浙江
0问了句废话了……别见怪
2026-01-18 来自 浙江
0cpp
Py版:#import<iostream> #import<algorithm> using namespace std; def mian(): int arr={1,2,3,4,5}; arr.sort(arr+0,arr+5,reverse=true); //Python里的sort for(int i in arr): cout<<i<<end=' '; return 0;2026-01-18 来自 香港
0






















有帮助,赞一个