# 练习:用户输入姓名、年龄、工作、爱好 ,然后打印成以下格式
# ------------ info of Egon -----------
# Name : Egon
# Age : 22
# Sex : male
# Job : Teacher
# # ------------- end -----------------
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 name = input("Please input your name :") 2 age = input("Please input your age :") 3 sex = input("Please input your sex :") 4 job = input("Please input your job :") 5 print("""------------ info of Egon ----------- 6 Name : %s 7 Age : %s 8 Sex : %s 9 Job : %s 10 ------------- end -------------------""" %(name,age,sex,job))