diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9a1a7e..6b6d9b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v2.2.2 with: - python-version: 3.5 + python-version: 3.11 - run: pip install --upgrade pip aheui - run: bash test.sh --disable logo env: diff --git a/_tools/aheuilize/aheuilize.py b/_tools/aheuilize/aheuilize.py index 0b0707b..df32b1a 100644 --- a/_tools/aheuilize/aheuilize.py +++ b/_tools/aheuilize/aheuilize.py @@ -1,11 +1,13 @@ import math + def divide(a): b = int(a / 2) if a % 2 == 1: return [b, b + 1] return [b, b] + def factorization(a): primes = [] factor = 2 @@ -18,6 +20,7 @@ def factorization(a): a = int(a / factor) return primes + def compress_factors(a): is_first_2 = True is_first_3 = True @@ -47,6 +50,7 @@ def compress_factors(a): result.append(3) return result + def is_prime(a): sqrt = int(math.sqrt(a)) if a < 2: @@ -56,6 +60,7 @@ def is_prime(a): i += 1 return sqrt + 1 == i + def number2Aheui(a): cnt = -1 result = "" @@ -78,8 +83,9 @@ def number2Aheui(a): result += "따" return result + def trace2Aheui(a): result = "" for i in range(len(a)): - result += number2Aheui(ord(a[i]))+"맣" + result += number2Aheui(ord(a[i])) + "맣" return result