1、获取用户主目录:
PYTHON:
-
usrHome = os. path. expanduser ( '~' )
2、打开系统默认浏览器
PYTHON:
-
webbrowser. open_new_tab ( 'http://sinolog.it' )