mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update powershell.html.markdown
Co-authored-by: 谭九鼎 <109224573@qq.com>
This commit is contained in:
parent
8df9aa061f
commit
12c7b6cd59
@ -143,7 +143,7 @@ $b -is $a.GetType() # => False, a and b types not equal
|
||||
$name = "Steve"
|
||||
$age = 22
|
||||
"He said his name is $name." # => "He said his name is Steve"
|
||||
“{0} said he is {1} years old.” -f $name, $age # => "Steve said he is 22 years old"
|
||||
"{0} said he is {1} years old." -f $name, $age # => "Steve said he is 22 years old"
|
||||
"$name's name is $($name.Length) characters long." # => "Steve's name is 5 characters long."
|
||||
|
||||
# $null is not an object
|
||||
|
Loading…
Reference in New Issue
Block a user