update test and README

This commit is contained in:
Fanani M. Ihsan 2016-05-26 13:06:33 +07:00
parent 4d9d47ef91
commit 969ddcfbac
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ The usage is very simple, just Create new ZK instance and you will ready to call
* Basic Ussage * Basic Ussage
``` ```
import zk import zk
from zk import const
zk = zk.ZK(ip='192.168.1.201', port=4370, timeout=5) zk = zk.ZK(ip='192.168.1.201', port=4370, timeout=5)
try: try:

View File

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
from zk import const
sys.path.append("zk") sys.path.append("zk")
import zk import zk
from zk import const
zk = zk.ZK('192.168.1.201') zk = zk.ZK('192.168.1.201')
print 'Connecting to device ...' print 'Connecting to device ...'