Generation

generate functionThu, 25 May 2023

Judge whether the character is in simplified japanese characters

def is_japanese(char): return 0x4e00 <= ord(char) <= 0x9fff is_japanese("日")

Questions about programming?Chat with your personal AI assistant