我尝试这样做,但它不起作用.
<logic:present name="MEMBER" >
<bean:message key="member.registerConfirmation" arg0='<bean:write name="MEMBRE_REGISTER" property="firstname"/>' arg1='<bean:write name="MEMBRE_REGISTER" property="lastname"/>'/>
</logic:present>
Run Code Online (Sandbox Code Playgroud)
和bean:消息包含:
member.registerConfirmation = Congratulations {0} {1}, you are in !
Run Code Online (Sandbox Code Playgroud) 我想用Python复制另一个JSON文件中的JSON文件的内容
有任何想法吗 ?
谢谢 :)
我想使用%s将两个参数传递给我的字符串.
我试过这个,但它不起作用:
title = "im %s with %s"
title % "programming" % "python"
Run Code Online (Sandbox Code Playgroud)
它给出了这个错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string
Run Code Online (Sandbox Code Playgroud)
你有好主意吗?谢谢