'''代码片段'''import bisectdef classify(s): g = 'FEDCBA' data = [50, 60, 70, 80, 90] i = bisect.bisect(data, s) return g[i]