It's a simple question
There is a str type called a='[1,2,3]'
How can I change a=[1,2,3] to list type?
>>> a = "[1,2,3]" >>> from ast import literal_eval >>> a = literal_eval(a) >>> a [1, 2, 3]
589 GDB gets version error when attempting to debug with the Presense SDK (IDE)
587 Uncaught (inpromise) Error on Electron: An object could not be cloned
571 PHP ssh2_scp_send fails to send files as intended
562 Who developed the "avformat-59.dll" that comes with FFmpeg?
566 Understanding How to Configure Google API Key
© 2024 OneMinuteCode. All rights reserved.