1. 程式人生 > >2017-12-15python全棧9期第二天第四節之格式化輸出%s和用戶交互個人簡歷模板

2017-12-15python全棧9期第二天第四節之格式化輸出%s和用戶交互個人簡歷模板

use obb info 用戶 %d pytho utf 交互 int

#!/user/bin/python
# -*- coding:utf-8 -*-
name = input(‘姓名:‘)
age = input(‘年齡:‘)
job = input(‘工作:‘)
hobbie = input(‘愛好:‘)
msg = ‘‘‘-----------info of %s------------
name = %s
age = %d
job = %s
hobbie = %s
----------end--------------‘‘‘ %(name,name,int(age),job,hobbie)
print(msg)


2017-12-15python全棧9期第二天第四節之格式化輸出%s和用戶交互個人簡歷模板