From 1930ceb8360fe3555e8d96d699de43167f067809 Mon Sep 17 00:00:00 2001 From: Yeol <136407746+13m0n4de@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:52:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(ppc/leet-machine):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E8=AF=8D=E5=B0=8F=E5=86=99=E8=BD=AC=E6=8D=A2=E9=80=A0?= =?UTF-8?q?=E6=88=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- challenges/ppc/leet_machine/build/machine.py | 2 +- challenges/ppc/leet_machine/writeup/solve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/ppc/leet_machine/build/machine.py b/challenges/ppc/leet_machine/build/machine.py index 1ed639f..ba22ece 100644 --- a/challenges/ppc/leet_machine/build/machine.py +++ b/challenges/ppc/leet_machine/build/machine.py @@ -25,7 +25,7 @@ def generate_random_sentence(): def convert_to_leet(sentence): - return "".join(LEET_DICT.get(char, char) for char in sentence.lower()) + return "".join(LEET_DICT.get(char, char) for char in sentence) def display_rules(): diff --git a/challenges/ppc/leet_machine/writeup/solve.py b/challenges/ppc/leet_machine/writeup/solve.py index 84632b6..e8b8466 100644 --- a/challenges/ppc/leet_machine/writeup/solve.py +++ b/challenges/ppc/leet_machine/writeup/solve.py @@ -8,7 +8,7 @@ def convert_to_leet(sentence): - return "".join(LEET_DICT.get(char, char) for char in sentence.lower()) + return "".join(LEET_DICT.get(char, char) for char in sentence) # 等待并通过初始提示