Retranslate the complete Japanese online edition from Chinese (#2008)

* Retranslate the complete Japanese online edition from Chinese

* Fit Japanese homepage labels and localize heading permalinks

* Point Japanese contribution instructions to the Japanese preview

* Replace locale conditionals with multilingual UI tables
This commit is contained in:
Yudong Jin
2026-10-30 02:12:26 +08:00
committed by GitHub
parent 455e8c1281
commit 7257641e0e
1987 changed files with 23531 additions and 23261 deletions

View File

@@ -24,7 +24,7 @@ def mul_hash(key: str) -> int:
def xor_hash(key: str) -> int:
"""XOR ハッシュ"""
"""排他的論理和ハッシュ"""
hash = 0
modulus = 1000000007
for c in key:
@@ -41,18 +41,18 @@ def rot_hash(key: str) -> int:
return hash % modulus
"""Driver Code"""
"""実行用コード"""
if __name__ == "__main__":
key = "Hello アルゴリズム"
key = "Hello 算法"
hash = add_hash(key)
print(f"加算ハッシュ値は {hash}")
print(f"加算ハッシュの値は {hash}")
hash = mul_hash(key)
print(f"乗算ハッシュ値は {hash}")
print(f"乗算ハッシュの値は {hash}")
hash = xor_hash(key)
print(f"XOR ハッシュ値は {hash}")
print(f"排他的論理和ハッシュの値は {hash}")
hash = rot_hash(key)
print(f"回転ハッシュ値は {hash}")
print(f"回転ハッシュの値は {hash}")