I have a Python script and I'm trying to run it from Windows or some online Python interpreter. I would like my friend to test it but he doesn't have linux.
The conflict here is that I have modules such as "import os" in the script that is only native to the bash environment. So how can I get my friend to run my .py script in Windows?
Thanks!
The cool thing about python is that you friend should be able to run your script with little to no change(hopefully), to quote the python os docs
This module provides a portable way of using operating system dependent functionality.
If your friend did have an issue you might have a another question to ask.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.