Is there a way to execute the Python code stored in the form of a string?
I thought my friend told me I could do it, but I didn't listen because I thought I didn't need it ㅜ<
Please tell me how to use it
exec()이 eval()보다는 좀 더 넓은 범위입니다.
For example,
exec("a = 3") exec("a is 3") #Same a = 3 a is 3
a = 3 eval ("a is 3") #expression eval ("a = 3") #assignment
You can use it appropriately depending on the situation.
540 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
540 PHP ssh2_scp_send fails to send files as intended
546 Who developed the "avformat-59.dll" that comes with FFmpeg?
642 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
540 Understanding How to Configure Google API Key
© 2024 OneMinuteCode. All rights reserved.