摘要: 求水仙花数 for循环书写水仙花数 #include<iostream> using namespace std; int main() { int num = 0; int a=0, b=0, c=0; for (num=0;num<1000;num++) { a = num / 100; b = 阅读全文
posted @ 2023-02-06 16:19 Lovcsy 阅读(48) 评论(0) 推荐(0)
摘要: 自定义异常作业: 1、 使用input输入一个名字阿坤 判断,在不在里面, * 如果在,就打印阿坤是班级的一员 * 如果不在,抛出异常 2、熟练账务模块和包以及if name == "__main": 自定义异常 list_name = ["张三", "李四", "王五", "赵六", "周扒皮"] 阅读全文
posted @ 2023-02-06 16:18 Lovcsy 阅读(27) 评论(0) 推荐(0)