摘要:
seasons = ['Spring', 'Summer', 'Fall', 'Winter'] print(list(enumerate(seasons))) for i,value in enumerate(seasons): print(i,value) 输出结果: [(0, 'Spring' 阅读全文
摘要:
覆盖强度由低到高依次为 语句覆盖、判定覆盖、条件覆盖、判定条件覆盖、条件组合覆盖、路径覆盖 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 首先画出程序流程图: 语句覆盖 阅读全文