李昂 e6a33c058e !34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00

13 lines
176 B
Python

import PikaStdData
d = PikaStdData.Dict()
d['a'] = 1
d['b'] = 2
d['c'] = 'test'
print(d)
for item in d:
print(item)
keys = d.keys()
for k in keys:
print(k)
print(keys)