标签:div style inf bubuko 一个 bin 图片 put for
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = ‘Fan Lijun‘ n = input(‘请输入一个大于1,小于等于20的整数:‘) lst = [] for i in range(int(n)): z = eval(input(‘请输入总病例数:‘)) lst.append(z) y = eval(input(‘请输入有效病历数:‘)) lst.append(y) j = lst[1] / lst[0] num = 1 for o in range(2, len(lst), 2): p = lst[o+1]/lst[o] if p-j > 0.05: print(f"第{num}组:better") elif j-p > 0.05: print(f"第{num}组:worse") else: print(f"第{num}组:same") num += 1
标签:div style inf bubuko 一个 bin 图片 put for
原文地址:https://www.cnblogs.com/LoveBeautiful/p/10030300.html