- 1
What is the diffrence between os&sys module?
what is os module and sys module with example
3 Answers
+ 3
I suggest you use the internet.
Both are very complex modules themselves so I don't have much expertise on these matters
+ 3
"""Python?
The nice thing about Python is you can query the language for its own documentation: """
import os, sys
# comment out one of these if Time Limit Exceeded
print(os.__doc__)
print("*"*38+"\n") # separator
print(sys.__doc__)
# OS routines for NT or POSIX depending on what system we're on...
# sys...provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter.
+ 1
Different modules with different functions really. There is no definite difference.