user = "gaojun"password ="123abc"for i in range(3): user = input('请输入用户名:') password = input('请输入密码:') if user == "gaojun" and password =="123abc": print("欢迎!gaojun!") break else: print("用户或密码错误!"…
[root@localhost root]# vim /etc/profile # SHENJI history USER=`whoami` USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` if [ "$USER_IP" = "" ]; then USER_IP=`hostname` fi if [ ! -d /var/log/history ]; then mkd…