Created
April 22, 2018 16:14
-
-
Save shreyanshu7101904/5eb4159fce5a8302a5e4964b0ddde152 to your computer and use it in GitHub Desktop.
this file contains methods which can be used in python after importing os module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import * | |
def fun(): | |
print(getuid()) #get user id | |
print(list(uname())) # get info about current operating system name,nodename,release,version,machine | |
if __name__ == "__main__" : | |
fun() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment