Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列内に保持されている各レコードについて、レコード内の最初の数字 (wins-losses-tie) を取得しようとしています。例えば:
配列は [2-2-3, 4-5-2, 1-3-8] のようになります。
勝利数のすべての値を取得して新しい配列に割り当てたいことを考えると、最終的に得たい配列は次の [2, 4, 1] です。
私のpythonコード内でこれを行うにはどうすればよいですか?
ありがとう。