欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

表格输出内容

程序员文章站 2023-01-18 18:12:31
#!/usr/bin/env python # -*- coding: utf-8 -*- name = input("Name:") age = input("Age:") job = input("Job:") hobbie = input("Hobbie:") info = ''' -----... ......
#!/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))