function isodd(num){
if(typeof num != "number"){throw new Error("输入非整数")}
return num % 2 === 1|| num % 2 === -1 //不可忽略负数
}
function isodd(num){
if(typeof num != "number"){throw new Error("输入非整数")}
return num % 2 === 1|| num % 2 === -1 //不可忽略负数
}