test.py 283 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #encoding=utf-8 #缓存 # class Mycache: # def __init__(self): # self.cache = {} # self.max_cache_size = 10 # # # # # a = 15.1111 # print(round(a,1)) # a = 10 # b = 9.0 a = None b = '' if a: print(1) if b: print(2)