2
有什麼辦法在Powershell中寫這樣的東西嗎? (Linux的將是用Perl)在Powershell中編寫一個十六進制轉義字符
char foo = '\x41';
我需要輸入一些非打印字符到我的節目
有什麼辦法在Powershell中寫這樣的東西嗎? (Linux的將是用Perl)在Powershell中編寫一個十六進制轉義字符
char foo = '\x41';
我需要輸入一些非打印字符到我的節目
您可以通過做一個鑄造一個int爲char。
,用一個小數號碼:
$foo = (65 -as [char])
而且從六:
$foo = (0x41 -as [char])
兩個會給你設置到$foo
A