摘要: 什么是水仙花数 水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身(例如:13 + 53+ 3^3 = 153) ls =[] input1 = list(map(int,input().strip().split())) while any(input1): ls.append 阅读全文
posted @ 2022-05-28 00:41 楚千羽 阅读(111) 评论(0) 推荐(0)
摘要: Reference Link: Python中如何获取二维列表的行数和列数 python 判断矩阵为空 python 接收不固定行数的矩阵输入 正文 ls = [] input1 = list(map(int,input().strip().split())) # 空行作为循环停止的判定 # htt 阅读全文
posted @ 2022-05-28 00:20 楚千羽 阅读(141) 评论(0) 推荐(0)