fizzbuzz 2020-9-27

第一版代码 for($i=1;$i<=100;$i++){ echo $i%15==0?'FizzBuzz':($i%3==0?'Fizz':($i%5==0?'Buzz':$i)),"\n"; } 第二版代码 for($i=1;$i<=100;$i++)echo($i%3<1?'Fizz':'').($i%5<1?'Buzz':'')?:$i,"\n"; 第三版代码
浏览:989评论:0 分类:练习 详细阅读

基本功的重要 2020-9-17

$sqlJson = ' [ { "query": "select * from `copy_user` where `copy_user`.`id` = ? and `copy_user`.`deleted_at` is null limit 1", "bindings": [ 1697 ], "time": 2.87 }, { "query": "select `is_admin` from `hospital_areas` where `hospital_areas`.`id` = ? limit 1", "bindings": [ 1 ], "time": 0.55 }, { "query": "select count(*) as aggregate from `kd_report_spec` as `r` left jo...
浏览:946评论:0 分类:练习 详细阅读