May-30-2020, 03:48 AM
Because the import is local to your
main
function. Imports should go at the top of the file, as per PEP 8.
python library not defined in user defined function
|
|
Messages In This Thread |
python library not defined in user defined function - by johnEmScott - May-30-2020, 03:41 AM
RE: python library not defined in user defined function - by ndc85430 - May-30-2020, 03:48 AM
RE: python library not defined in user defined function - by DT2000 - May-30-2020, 04:14 AM
|