摘要: seasons = ['Spring', 'Summer', 'Fall', 'Winter'] print(list(enumerate(seasons))) for i,value in enumerate(seasons): print(i,value) 输出结果: [(0, 'Spring' 阅读全文
posted @ 2020-03-22 22:31 爱打盹的猫猫 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 覆盖强度由低到高依次为 语句覆盖、判定覆盖、条件覆盖、判定条件覆盖、条件组合覆盖、路径覆盖 def baihe(a, b, c): if a > 0 and b > 0: c = c / a if a > 1 or c > 1: c = c + 1 c = b + c 首先画出程序流程图: 语句覆盖 阅读全文
posted @ 2020-03-22 20:22 爱打盹的猫猫 阅读(247) 评论(0) 推荐(0) 编辑