User Profile
Collapse
-
new to python started a topic how can I change what a script does while it is running, by pressing a keyin Pythonhow can I change what a script does while it is running, by pressing a key
I am trying to write code which will let the user press a key like 'b' and run an operation, while a script is still running, and have the script continue afterwards. How can I do this??? I am using Linux. -
thanks a million -
thank you so much for your help, but im still confused about one line.
the begining of the line is just to check if its a file but what does os.path.join do? and why does it take two inputs?Code:if os.path.isfile(os.path.join(where_to_look, f)):
Leave a comment:
-
can you please explain how this line works. i want to understand it
Code:len([f for f in os.listdir(where_to_look) if os.path.isfile(os.path.join(where_to_look, f))])
Leave a comment:
No activity results to display
Show More
Leave a comment: