小编ili*_*ias的帖子

Struts如何插入bean:写入bean:message参数

我尝试这样做,但它不起作用.

<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)

struts

2
推荐指数
1
解决办法
8319
查看次数

如何使用Python在另一个JSON文件中复制JSON文件

我想用Python复制另一个JSON文件中的JSON文件的内容

有任何想法吗 ?

谢谢 :)

python json

0
推荐指数
1
解决办法
4576
查看次数

如何在Python中使用多个字符串参数

我想使用%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)

你有好主意吗?谢谢

python

-2
推荐指数
2
解决办法
448
查看次数

标签 统计

python ×2

json ×1

struts ×1