To speed up the function, she replaced the loop with a listcomp that filters and squares the numbers.
関数の処理を速めるため、彼女はループをリスト内包表記に置き換えて、数値をフィルタして二乗する処理を一行で行いました。
アカウントを持っていませんか? 新規登録
アカウントを持っていますか? ログイン
DiQt(ディクト)
無料
★★★★★★★★★★