msg=‘i am %s my hobby is %s‘ %(‘cat‘,‘eat‘) print(msg)
%s 接受字符
%d只能接收数字%d %1
字符串操作%s、
原文:https://www.cnblogs.com/wfl9310/p/8893875.html