全部评论 1

  • 你的代码块用的类型是python还是cpp

    2026-01-18 来自 浙江

    0
    • 问了句废话了……别见怪

      2026-01-18 来自 浙江

      0
    • cpp
      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

热门讨论