Subash Chandran posted: "from ast import literal_eval as safe_eval string = '[[396, 555], [326, 337], [467, 332]]' print(safe_eval(string)) # will return: [[396, 555], [326, 337], [467, 332]]"
|

Subash Chandran posted: "from ast import literal_eval as safe_eval string = '[[396, 555], [326, 337], [467, 332]]' print(safe_eval(string)) # will return: [[396, 555], [326, 337], [467, 332]]"
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.