#Author:ge jian
_username = ‘gejian‘
_password = ‘123‘
user = input("请输入用户名:")
pwd = input("请输入密码:")
if user == _username and pwd == _password:
print("welcome user %s login"% user)
else:
print("Wrong username or password")
#Author:ge jian
username = input("Username:")
age = int(input("age:"))
job = input("job:")
salary = input("salary:")
Information=‘‘‘
---------info of %s-----------
Name:%s
Age:%d
Job:%s
Salary:%s
‘‘‘ %(username,username,age,job,salary)
print(Information)
print(type(age),type(str(age)))
Information2=‘‘‘
---------info of {Name}-----------
Name:{Name}
Age:{Age}
Job:{Job}
Salary:{Salary}
‘‘‘ .format(Name=username,
Age=age,Job=job,Salary=salary)
Information3=‘‘‘
---------info of {0}-----------
Name:{0}
Age:{1}
Job:{2}
Salary:{3}
‘‘‘ .format(username,age,job,salary)
print(Information3)