摘要: brew install java ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/manifests/18.0.1.1 ######################################################## 阅读全文
posted @ 2022-07-05 15:54 丶丶Ao 阅读(349) 评论(0) 推荐(0)
摘要: import hashlibimport timelarge = 0md5 = hashlib.md5()start = time.time()with open('test.py', 'rb') as f: a = f.read(2048) md5.update(a) large = len(a) + large while len(a) > 0: a =... 阅读全文
posted @ 2018-11-23 18:42 丶丶Ao 阅读(264) 评论(0) 推荐(0)
摘要: 把一个数字的list从小到大排序,然后写入文件,然后从文件中读取出来文件内容,然后反序,在追加到文件的下一行很基础的文件练习题,大概是分为字符串和列表的相互转化和文件操作。 1 import random 2 3 list_num = [random.randint(1, 100) for i in range(1, 20)] 4 5 list_num.sort() 6 txt ... 阅读全文
posted @ 2018-09-20 16:52 丶丶Ao 阅读(1105) 评论(0) 推荐(0)