From 8ee873aab95e61ae110e97906db799d7f11be2bb Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 13 Aug 2023 03:24:42 +0800 Subject: [PATCH] ... --- tests/07_dict.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/07_dict.py b/tests/07_dict.py index 3926a9bc..f9c02da5 100644 --- a/tests/07_dict.py +++ b/tests/07_dict.py @@ -108,4 +108,21 @@ a = {'0': 0, '1': 1} for i in range(2, 1000): a[str(i)] = i del a[str(i - 2)] - assert a[str(i - 1)] == i - 1 \ No newline at end of file + assert a[str(i - 1)] == i - 1 + +a = {'0': 0, '1': 1} +b = ['0', '1'] + +data = [] +j = 6 +for i in range(65535): + j = ((j*5+1) % 65535) + data.append(str(j)) + +for i in range(len(data)): + z = data[i] + a[z] = i + b.append(z) + if i % 3 == 0: + y = b.pop() + del a[y] \ No newline at end of file