4 months ago
tips
string = '[1,2,3]'
list = eval(string)
print list
[1, 2, 3]
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2063"></script>
6 months ago
cName = ['funciton','bcp','interbank','sheraton']
cPhone = ['65465465','4546545','56465465','545454545']
cRuc = [5465463545,546546546,5245454,9898998]
store = [cName,cPhone,cRuc]
l = []
i = 0
for s in store:
cname = store[0][i]
cphone = store[1][i]
cruc = store[2][i]
l.append({'cname': cname, 'phone':cphone, 'ruc':cruc})
i = i+1
savelog(l)
[{
'phone': '65465465',
'cname': 'funciton',
'ruc': 5465463545L
},
{
'phone': '4546545',
'cname': 'bcp',
'ruc': 546546546
},
{
'phone': '56465465',
'cname': 'interbank',
'ruc': 5245454
}]
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2035"></script>