vbnet 中a=120b=130如何使ab按1:1模式显示
在VB.NET中,可以使用String.Format方法来实现a:b按照1:1的模式显示。以下是代码示例:
Dim a As Integer = 120
Dim b As Integer = 130
Dim result As String = String.Format("{0}:{1}", a, b)
Console.WriteLine(result)
输出结果为:120:130
原文地址: https://www.cveoy.top/t/topic/iD8D 著作权归作者所有。请勿转载和采集!