Skip to content

Commit ddd053f

Browse files
author
tuntun
committed
python3下操作redis
1 parent a4bca7c commit ddd053f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test_redis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# encoding:utf-8
22

33
import redis
4+
import webbrowser
45

56

67
r = redis.StrictRedis(host='localhost', port=6379, db=0)
@@ -24,4 +25,6 @@
2425
r.rpush('list','www.tencent.com')
2526

2627
pop = r.lpop('list')
27-
print(pop)
28+
print(pop)
29+
30+
webbrowser.open('http://www.tantengvip.com',1)

0 commit comments

Comments
 (0)