# Formatted Output
#% Placeholder data type: s string d: integer f: Floating-point R: Built-in function will talk about I ...
# The first way
# NAME = input (' Please enter name: ')
# age = input (' Please enter Ages: ')
# job = input (' Please enter work: ')
# hobby = input (' Please enter hobby: ')
#
# msg = " " "
#------------Info of%s-----------
# Name:%s
# Age:%d
# Job:%s
# Hobby:%s
#-------------End-----------------
# "" " % (name, name, int (age), job, hobby)
# Print (msg)
# The second way
# dic = {' name ': ' Jinyuan ', ' age ': ' Job ': ' IT ', ' hobby ': ' Man '}
#
# msg = " " "
#------------Info of% (name) s-----------
# Name:% (name) s
# Age:% (age) D
# Job:% (Job) s
# Hobby:% (Hobby) s
#-------------End-----------------
# "" " % dic
# Print (msg)
# in formatted output only want to simply represent% write percent
msg = ' My name is%s, this year%d, learning Progress 5% '% (' Jin Yuan ')
Print (msg)
# Summary: If you want to make a template for a string class, or if you want to make a string some location into dynamic input, then you think of string concatenation, formatted output.
Formatted output py