早教吧 育儿知识 作业答案 考试题库 百科 知识分享

IF的条件如何简写if(DateTime.Now.Second==1||DateTime.Now.Second==3||DateTime.Now.Second==8||DateTime.Now.Second==9||DateTime.Now.Second==15||DateTime.Now.Second==37||DateTime.Now.Second==39||DateTime.Now.Second==5

题目详情
IF的条件如何简写
if (DateTime.Now.Second == 1 || DateTime.Now.Second == 3 || DateTime.Now.Second == 8 || DateTime.Now.Second == 9 || DateTime.Now.Second == 15 || DateTime.Now.Second == 37 || DateTime.Now.Second == 39 || DateTime.Now.Second == 55)
这句怎么简写啊,意思就是秒等于1,3,8,9,15,37,39,55其中一个就TRUE
▼优质解答
答案和解析
用数组str[]={1,3,8,9,15,37,39,55}