1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-14 20:35:54 +05:30
gists/python-programming/oneliners/ASCII_to_CJK.py

92 lines
1.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/python3
# ASCII_to_CJK.py
#
# Author: Intel A80486DX2-66
# License: Unlicense
ASCII_to_CJK = {
" ": "\u3000",
"!": "",
"#": "",
"$": "",
"%": "",
"&": "",
"'": "",
"(": "",
")": "",
"*": "",
"+": "",
",": "",
"-": "",
".": "",
"/": "",
"0": "",
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"=": "",
"?": "",
"@": "",
"A": "",
"B": "",
"C": "",
"D": "",
"E": "",
"F": "",
"G": "",
"H": "",
"I": "",
"J": "",
"K": "",
"L": "",
"M": "",
"N": "",
"O": "",
"P": "",
"Q": "",
"R": "",
"S": "",
"T": "",
"U": "",
"V": "",
"W": "",
"X": "",
"Y": "",
"Z": "",
"a": "",
"b": "",
"c": "",
"d": "",
"e": "",
"f": "",
"g": "",
"h": "",
"i": "",
"j": "",
"k": "",
"l": "",
"m": "",
"n": "",
"o": "",
"p": "",
"q": "",
"r": "",
"s": "",
"t": "",
"u": "",
"v": "",
"w": "",
"x": "",
"y": "",
"z": ""
}
print("".join(map(lambda character: ASCII_to_CJK.get(character, character),
input())))