这是我可怕的代码。如您所知,我对此很陌生。它应该使在旧游戏中写下基于图片的密码更容易,并且具有可自定义的代码,但它占用了太多空间。
@echo off
SET code1=dog
SET code2=cat
SET code3=hamster
SET code4=chicken
SET code5=cow
SET code6=horse
SET code7=lizard
SET code8=snake
SET code9=frog
SET code10=llama
SET code11=sheep
SET code12=rabbit
SET code13=chinchilla
SET code14=monkey
SET code15=human
SET code16=alien
:CODE
SET /a n+=1
ECHO 1:%code1%2:%code2%3:%code3%4:%code4%5:%code5%6:%code6%7:%code7%8:%code8%
ECHO Q:%code9%W:%code10%E:%code11%R:%code12%T:%code13%Y:%code14%U:%code15%I:%code16%
CHOICE /c 12345678QWERTYUI /n
set thing=%errorlevel%
if %thing%==1 echo %code1%>passwords.txt
if %thing%==2 echo %code2%>passwords.txt
if %thing%==3 echo %code3%>passwords.txt
if %thing%==4 echo %code4%>passwords.txt
if %thing%==5 echo %code5%>passwords.txt
if %thing%==6 echo %code6%>passwords.txt
if %thing%==7 echo %code7%>passwords.txt
if %thing%==8 echo %code8%>passwords.txt
if %thing%==9 echo %code9%>passwords.txt
if %thing%==10 echo %code10%>passwords.txt
if %thing%==11 echo %code11%>passwords.txt
if %thing%==12 echo %code12%>passwords.txt
if %thing%==13 echo %code13%>passwords.txt
if %thing%==14 echo %code14%>passwords.txt
if %thing%==15 echo %code15%>passwords.txt
if %thing%==16 echo %code16%>passwords.txt
if n lss 8 goto CODE
rem change this number for length of password
echo done
它应该做的是将8个单词输出到文本文件的一行,即按“1q2w3e4r”将输出“dog frog cat llama hamster Sheep chicken rabbit”到文本文件。