表格输出内容
程序员文章站
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))