How to change array elements that are greater than 5 to 5, in one line?

后端 未结 0 1234
清酒与你
清酒与你 2021-01-25 11:54

I would like to take an array x and change all numbers greater than 5 to 5. What is the standard way to do this in one line?

Below is some code that does thi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题