了解编码语法
Understanding coding syntax
我想给我一份 link 或一份我可以理解特定编程语言的帮助手册的编码语法的文档。
例如下面命令中的[]或[]或[]<>{|是什么意思| |} ?
希望你能理解我的问题
Get-ChildItem [[-Path] <String[]>] [[-Filter] <String>] [-Attributes {read-only | Hidden | System | Directory |
Archive | Device | Normal | Temporary | SparseFile | ReparsePoint | Compressed | Offline | NotContentIndexed |
Encrypted | IntegrityStream | NoScrubData}] [-Depth <UInt32>] [-Directory] [-Exclude <String[]>] [-File] [-Force]
[-Hidden] [-Include <String[]>] [-Name] [-Read Only] [-Recurse] [-System] [-UseTransaction] [<CommonParameters>]
查看 about_Command_Syntax 官方 Powershell 文档。
SYNTAX DIAGRAMS
Each paragraph in a command syntax diagram represents
a valid form of the command.
To construct a command, follow the syntax diagram from left to right.
Select from among the optional parameters and provide values for the
placeholders.
PowerShell uses the following notation for syntax diagrams.
<command-name> -<Required Parameter Name> <Required Parameter Value>
[-<Optional Parameter Name> <Optional Parameter Value>]
[-<Optional Switch Parameters>]
[-<Optional Parameter Name>] <Required Parameter Value>
关于<>
The .NET type of a parameter value is enclosed in angle brackets < >
to indicate that it is placeholder for a value and not a literal that
you type in a command.
{}
Braces {} indicate an "enumeration," which is a set of valid values
for a parameter.
[]
A right and left bracket [] appended to a .NET type indicates that the
parameter can accept one or multiple values of that type. Enter the
values in a comma-separated list.
我不会复制粘贴所有内容,而是前往那里获得更多关于语法的见解。
我想给我一份 link 或一份我可以理解特定编程语言的帮助手册的编码语法的文档。
例如下面命令中的[]或[]
希望你能理解我的问题
Get-ChildItem [[-Path] <String[]>] [[-Filter] <String>] [-Attributes {read-only | Hidden | System | Directory |
Archive | Device | Normal | Temporary | SparseFile | ReparsePoint | Compressed | Offline | NotContentIndexed |
Encrypted | IntegrityStream | NoScrubData}] [-Depth <UInt32>] [-Directory] [-Exclude <String[]>] [-File] [-Force]
[-Hidden] [-Include <String[]>] [-Name] [-Read Only] [-Recurse] [-System] [-UseTransaction] [<CommonParameters>]
查看 about_Command_Syntax 官方 Powershell 文档。
SYNTAX DIAGRAMS
Each paragraph in a command syntax diagram represents a valid form of the command.
To construct a command, follow the syntax diagram from left to right. Select from among the optional parameters and provide values for the placeholders.
PowerShell uses the following notation for syntax diagrams.
<command-name> -<Required Parameter Name> <Required Parameter Value> [-<Optional Parameter Name> <Optional Parameter Value>] [-<Optional Switch Parameters>] [-<Optional Parameter Name>] <Required Parameter Value>
关于<>
The .NET type of a parameter value is enclosed in angle brackets < > to indicate that it is placeholder for a value and not a literal that you type in a command.
{}
Braces {} indicate an "enumeration," which is a set of valid values for a parameter.
[]
A right and left bracket [] appended to a .NET type indicates that the parameter can accept one or multiple values of that type. Enter the values in a comma-separated list.
我不会复制粘贴所有内容,而是前往那里获得更多关于语法的见解。