Skip to content

Commit 8243a9b

Browse files
committed
finish 0003
1 parent 7eebbfe commit 8243a9b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Silocean/0003/Test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*-coding:utf-8-*-
2+
__author__ = 'Tracy'
3+
import redis, uuid
4+
5+
r = redis.StrictRedis(host='localhost', port=6379)
6+
for i in range(200):
7+
r.set('key_id'+str(i), uuid.uuid1())
8+
9+
for i in range(200):
10+
print(r.get("key_id"+str(i)))

0 commit comments

Comments
 (0)