問題已解決
老師,請(qǐng)問這里面的2.5,6.5為什么也被判斷為偶數(shù)呢,空格為什么也被判斷為偶數(shù)?
![](https://member.chinaacc.com/homes/resources/images/home/avatar/7.jpg)
![](/wenda/_nuxt/img/iconWarn.60bd4fe.jpg)
![](https://pic1.acc5.cn/012/94/77/76_avatar_middle.jpg?t=1714475889)
你好,你判定的公式是?
2024 03/29 13:41
![](http://member.chinaacc.com/homes/resources/images/home/avatar/7.jpg)
84784957 ![](/wenda/_nuxt/img/reply1.d92ea43.png)
![](/wenda/_nuxt/img/reply1.d92ea43.png)
2024 03/29 14:34
就是表頭的公式
![](https://pic1.acc5.cn/012/94/77/76_avatar_middle.jpg?t=1714475889)
CC橙老師 ![](/wenda/_nuxt/img/reply2.28c7604.png)
![](/wenda/_nuxt/img/reply2.28c7604.png)
2024 03/29 15:40
iseven函數(shù)小數(shù)部分將被截尾取整,因此檢查 2,返回偶數(shù)
![](https://pic1.acc5.cn/012/94/77/76_avatar_middle.jpg?t=1714475889)
CC橙老師 ![](/wenda/_nuxt/img/reply2.28c7604.png)
![](/wenda/_nuxt/img/reply2.28c7604.png)
2024 03/29 15:42
空格檢查的0,返回偶數(shù)
![](/wenda/img/newWd/sysp_btn_eye.png)