jzsgyml 当前离线
五级士官
评分人数
TOP
caruko 当前离线
中校
set /a "num=1<<N" echo,%num%复制代码
mstsc 当前离线
四级士官
slore 当前离线
上尉
ArdentMan 当前离线
中尉
@Echo Off&SetLocal EnableDelayedExpansion Set /P Num=请输入位数: For /L %%I in (%Num%,-1,1) Do Set /A "Max+=1<<(%%I-1)" (For /L %%I in (0,1,%Max%) Do ( Set /A a=%%I&set "Number=" For /L %%J in (1,1,%Num%) Do ( Set /A b=a%%2,a=a/2 Set "Number=!b!!Number!" ) Echo !Number! ))>List.txt Start List.txt复制代码
CrLf 当前离线
论坛巡查
@echo off (echo 1 echo 0)>排列组合.txt (for /l %%a in (1 1 7) do ( for /f %%b in (排列组合.txt) do ( echo %%b1 echo %%b0 )>>tmp.txt move tmp.txt 排列组合.txt ))>nul复制代码