表格输出内容

2020-01-20 14:37:42 浏览数 (1)

代码语言:javascript复制
#!/usr/bin/env python
# -*- coding: utf-8 -*-

name = input("Name:")
age = input("Age:")
job = input("Job:")
hobbie = input("Hobbie:")

info = '''
------------ info of %s -----------  
Name  : %s   
Age   : %s
job   : %s   
Hobbie: %s   
------------- end -----------------
''' %(name,name,age,job,hobbie)  

print(info)
#print(type(age))

0 人点赞