创建字符串和数组的方法

字符串(一头一尾的@"必须单独一行)
$string = @"
I am string
hahaha
"@
 
IsPublic IsSerial Name                                     BaseType                                      
-------- -------- ----                                     --------                                      
True     True     String                                   System.Object
 
TypeName: System.String
 
 
 
数组:
$array = @('I am array
hehehe ')
 
IsPublic IsSerial Name                                     BaseType                                      
-------- -------- ----                                     --------                                      
True     True     Object[]                                 System.Array
 
TypeName: System.String

你可能感兴趣的:(字符串)