表格輸出內容

啊牛2333發表於2018-11-13
#!/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))

 

相關文章