Udemy - 100 Days of Code: The Complete Python Pro Bootcamp
Day 30 - Errors, Exceptions and JSON Data 目录228. Catch Exceptions229. Raise Exceptions230. Improve the NATO Alphabet Project231. Read and Write JSON Data232. Improve the Password Manager Project…
1.判断素数int prime_n(int n) {int num 0;//计数器for (int i 2; i < n - 1; i) {if (n % i 0)num;}if (num0)return 1;else return 0;
}判断一个数字是不是素数,只需要判断对1和它本身之外的数取余不为0,就可以说这个数字是素数2.判断超级水仙花…