我在我的應用程序中使用旋鈕來讓用戶選擇一個介於-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>標籤中,