'
s = s.replace("=",":")
# s = s.strip()
print s
d = {}
for i in s:
key, val = i.split(":")
d[key] = val.strip()
print d
print d["ip address"]
Getting below error :
key, val = i.split(":")
ValueError: need more than
= s.replace("=",":")
> ># s = s.strip()
> >print s
> >
> > d = {}
> > for i in s:
> > key, val = i.split(":")
> > d[key] = val.strip()
> >
> > print d
> > print d["ip address"]
>
> Encryption: AES or TKIP
> '''
>
>s = s.replace("=",":")
># s = s.strip()
>print s
>
> d = {}
> for i in s:
> key, val = i.split(":")
> d[key] = val.strip()
>
> print d
> print
atory: World Safe
Authencation: WPA2/PSK
Encryption: AES or TKIP
'''
s = s.replace("=",":")
# s = s.strip()
print s
d = {}
for i in s:
key, val = i.split(":")
d[key] = val.strip()
print d
print d["ip addres
d = {}
for i in s:
key, val = i.split(":")
d[key] = val.strip()
print d
print d["ip address"]
Getting below error :
key, val = i.split(":")
ValueError: need more than 1 value to unpack
--
https://mail.python.org/mailman/listinfo/python-list
ValueError: need more than 1 value to unpack . This is the error I
get
when I am using pyRXPU in the one of the scripts to get the strings
from an application. Can anybody throw some light on this ..what might
be the solution for this.
If I use pyRXP iam not getting the mentioned error.
Error