我正在寻找一个包,以计算一个表示,作为输入,一个选定的数字,在崇高文本2。
例如:我想把每一个选定的数字加2。
label2 | =Label(top,bg="#BFBFBF",height=1,text="freq [Hz]")
label2 | .place(x=420,y=320)
label3 | =Label(top,bg="#BFBFBF",height=1,text="d.c.[%]")
label3 | .place(x=520,y=320)
slider1 | =Scale(top,variable=dutycycle_var,length=300,resolution=1,command=set_pwm)
slider1 | .place(x=500,y=5)
slider1 | .set(50)我希望能够快速地将变量名更改为:
label4 |=Label(top,bg="#BFBFBF",height=1,text="freq [Hz]")
label4 |.place(x=420,y=320)
label5 |=Label(top,bg="#BFBFBF",height=1,text="d.c.[%]")
label5 |.place(x=520,y=320)
slider3 | =Scale(top,variable=dutycycle_var,length=300,resolution=1,command=set_pwm)
slider3 |.place(x=500,y=5)
slider3 |.set(50)如果这是可能的话,我很好奇其他的操作是否也是可能的,比如*,sqrt,电源.
发布于 2016-05-17 21:24:57
发布于 2016-05-17 20:16:24
下面的包似乎完成了您正在寻找的任务:https://forum.sublimetext.com/t/inc-dec-value-st2-and-st3/1931

数字(整数和小数)、日期、十六进制颜色值、相对关系或配置值上的循环枚举和加字符串操作(上、下、大写)的增减
https://stackoverflow.com/questions/37285316
复制相似问题