Excuse me for the same problem in Python 3.4.2-32bit
I just discovered that function does not necessarily take the
string input and transfer it to a command to execute.
So is there a problem with my assumption?
Thanks
Option Product Manager
Gelin Dahua Futures Co.Ltd
a = input("tell me which py to execute: ")
print(a)
print('import '+a)
print(type('import'+a))
eval('print(a)')
try:
eval('import '+a)
except Exception as e:
print('Error: ', e)
##while True:
## pass
@python 3.4.2
this code attempts to