- <# :
- @Powershell "& {[ScriptBlock]::Create((gc '%~f0' -raw)).Invoke()}" & pause & goto :eof
- #>
- $str="0101011001101100010011"
- $first="$str".Substring(0,7)
- $sec="$str".Substring(9,4)
- $third="$str".Substring(13)
- [Convert]::ToInt64("$first",2)
- [Convert]::ToInt64("$sec",2)
- [Convert]::ToInt64("$third",2)
复制代码
|