print("What is your name?")
name =str(input("My name is "))
print("Hi " ,name)
1) % string
print('%s%s' %('mother', 'father))
2) format 함수
print('{} {}'.format(1,2))
2-1) %format
print("I love My %5.2d cats." %3)
# 5칸 whitespce하고 소숫점2자리 출력해줘
2-2) str.format
print("My family is {0},{1}, and me.".format(mother, father))
print("temperature is {0:.2f}C".format(15.78543)"
# 0번째는 소숫점 2자리까지 출력해줘
3) fsting
name ="H"
age=3
weight=10.333
print(f"HI , {name}. You are {age}")
print(f"HI , {name:*^5}.") # **H**
print(f"HI , {name:*<7.2f}.") # 10.33**
print({0},{1:<10s}.format(1,2)) #<왼쪽 정렬, >오른족 정렬