Basics of Python study notes (c) python entry job

A, formatted output

# Formatted output 
name = input ( "Please enter the name")
Age = int (the INPUT ( "Please enter the Age"))
height = int (the INPUT ( "Please enter height"))

msg = "My name is% s,% this year progress d years old, height% d, learning tasks 50 %%, %% s "% ( name, age, height

Note: If you want to output format output%, compared %%, if you want to output, compared with% s %% s
 

Guess you like

Origin www.cnblogs.com/xibanqiu/p/11530643.html