input()读取用户信息
name = input("Your name:").strip() # 输入并自动去除空格
age = input("Age:")
if age.isdigit():
age = int(age)
else:
print("input error")
exit()
hobbie = input("your hobbie:")
job = input("your job:")
msg = f'''
----------{name}----------
Name: {name}
Age: {age}, wow still yong, in {30-age} years you will be 30.
hobbie: {hobbie}
job: {job}
----------END----------
'''
print(msg)
结果: