如何从消息框中消除 {} 括号
我有这样的脚本:
rp_1st_name = 1000
rp_last_name = 2000
rp_1st_val = 5555
rp_last_val = 6666
fdh = 200
dif = (rp_1st_val - rp_last_val) - fdh
teor = rp_1st_val - rp_last_val
m1='wysokosc reperu poczatkowego:',rp_1st_val,'mm \n'
m2='wysokosc reperu koncowego:',rp_last_val, 'mm \n'
m3='przwyzszenie na ciagu: \n'
m4='teoretyczne =',teor,'mm \n'
m5='obliczone = ',fdh,'mm \n'
m6='fdh =',dif,'mm \n'
from easygui import *
msgbox((m1, m2, m3, m4, m5, m6),"摘要", ok_button="退出")
How to make {} brackets were not displayed in message box?
I have script like this:
rp_1st_name = 1000
rp_last_name = 2000
rp_1st_val = 5555
rp_last_val = 6666
fdh = 200
dif = (rp_1st_val - rp_last_val) - fdh
teor = rp_1st_val - rp_last_val
m1='wysokosc reperu poczatkowego:',rp_1st_val,'mm \n'
m2='wysokosc reperu koncowego:',rp_last_val, 'mm \n'
m3='przwyzszenie na ciagu: \n'
m4='teoretyczne =',teor,'mm \n'
m5='obliczone = ',fdh,'mm \n'
m6='fdh =',dif,'mm \n'
from easygui import *
msgbox((m1, m2, m3, m4, m5, m6),"SUMMARY", ok_button="Exit")
How to make {} brackets were not displayed in message box?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎认为这
会产生一个字符串(
String 5 more string
),但事实并非如此 -它给你一个元组 (
("String", 5, "more string")
)相反,尝试以下之一
You seem to think that
results in a string (
String 5 more string
) but it doesn't -it gives you a tuple (
("String", 5, "more string")
)Instead, try one of