pycharm acquaintance and formatted output

_ * _ Coding #: UTF-8 _ * _ 
# Author: Wang Dian-yuan
# Date: 2019/12/6

# formatted output
name = the INPUT ( "the Name")
Age = the INPUT ( "Age")
the Job = the INPUT ( "the Job")
INPUT = the salary ( "the Salary")
MSG = '' '
-----------------------% S ----------------------- info of
the Name:% S
Age:% S
the Job :% S
the Salary:% S
-------------- ---------------- End
'' '% (name, name, Age, Job , salary)
Print (msg)
'' '
how to make the above output in accordance with the established format?
Info of drey ------------ ------------
the Name: Dery
Age: 35
the Job: IT
the Salary: 3000
----------- End ---------------- ---
name, name, Age, Job, the salary
Python using S%
''

_ * _ Coding #: UTF-8 _ * _ 
# Author: Wang Dian-yuan
# Date: 2019/12/6
# User login program
#for cycle of usage: for i in the Range (A, b, c)
# A, b, b, respectively, is: a start value indicates, b represents the end value, c denotes the step
# the _user_ = "Dery"
# _password = "ABC"
# passed_check = False
# for I in Range (. 3):
# username = INPUT ( "username: ")
# = the INPUT password (" password: ")
# IF username and password == == _password the _user_:
# Print (" IS is available for purchase the Login ..... ")
# passed_check = True
# BREAK
# the else:
# Print ( "Invalid username or password")
# IF not passed_check:
"! to shameless, rotten scoundrels" # Print ()

the _user_ = "Dery"
_password = "abc"
for i in range(3):
username = input("username:")
password = input("password:")
if username == _user_ and password == _password :
print("welcome is login .....")
break
else:
print("Invalid username or password")
else:
print("要不要脸,臭流氓!")
# for i in range(101):
# if i%2 == 0
# print(i)
#
# for i in range(100):
# if i > 70 or i < 50:
# print(i)

Guess you like

Origin www.cnblogs.com/python-beginner/p/12000323.html