摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- import sys choice = input("是否退出?") if choice == 'Y' or choice == 'y': exit('成功退出了')#这里面还可以输出内容,很好玩 #!/usr/bin/env python # -*- coding:utf-8 -*- imp... 阅读全文
摘要:
python默认将三方模块安装到site-packages 阅读全文
摘要:
http://www.cnblogs.com/aland-1415/p/6613449.html 阅读全文
摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- import time print(time.ctime()) tm_obj = time.gmtime(time.time()) print(tm_obj) print(tm_obj.tm_year,tm_obj.tm_mon,tm_obj.tm_mday) print("%s-%s-%s" %(tm_o... 阅读全文
摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- import getpass ''' 调用该函数可以在命令行窗口里面无回显输入密码 ''' password = getpass.getpass("请输入密码:") print(password) 阅读全文