我在我的应用程序中使用旋钮来让用户选择一个介于-1和100之间的数字。在我的应用程序中-1表示无穷大。所以我想显示文字“Infinity”,如果用户选择值-1。这是我的代码: def spin_output(spin):
digits = int(spin.props.digits)
value = spin.props.value
if value < 0:
如果我查看下面的html页面页面的源代码: This is first line text
This is second line text
我可以看到: <div><font color="black">This is first line text<br>
This is second line text<br></font>
但是,如果上面的纹路都是<pre></pre>标签中,