Advertisement
Felanpro

os module functions random

Aug 4th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. import os
  2.  
  3. print(os.getlogin()) #Return person's username who's logged in.
  4.  
  5. os.system("ping google.com") #Type in cmd. (If you're on windows.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement