Update ..
Late news
My previous post: 2016
https://blog.boxstory.com/2016/08/python-new-string-format.html
New Addition : f-string ( support from 3.6 )
variable = 'hello'
print(f' my variable is {variable}') # using f' xxxx {variable_name}'
# output
my variable is hello
# Yes , It's very simple and powerful.
댓글 없음:
댓글 쓰기