1. 首页
  2. 数据库
  3. 其它
  4. python数据结构第一章代码

python数据结构第一章代码

上传者: 2021-01-16 18:28:32上传 PDF文件 39.64KB 热度 8次
第一次创作 1 def is_multiple(n, m): if (not isinstance(n, int)) | (not isinstance(m, int)): raise TypeError('elements must be numeric') if n // m == n / m: return True else: return False print(is_multiple('a', 2)) 2 def is_even(k): if not isinstance(k,int):
下载地址
用户评论