Python- handling strings

1. The string expression eval ()

dic = {'a':1,'b':2}
s = str(dic)
type(eval(s))

dict
Published 12 original articles · won praise 5 · Views 2253

Guess you like

Origin blog.csdn.net/G____G/article/details/104284238