Dim x As Int32 = 128 Console.Write(x) ' Variable ' Console.Write(3) ' Integer ' Console.Write(3.14159) ' Floating-point number ' Console.Write("Hello, world") ' String '
该方法与方法相同,不同之处在于它打印给定的末尾没有换行符。通过在提供的所有参数的末尾添加换行符字符串,可以使此方法在功能上相同:Console.Write()Console.WriteLine()argument(s) WriteLine
Console.Write("this is the value" & Environment.NewLine)