表格输出内容

发布时间:2019-04-01 21:41:11编辑:auto阅读(1962)

    #!/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))

     

关键字