Generation

generate functionTue, 23 May 2023

Determine whether the character is Japanese or not

def is_japanese(s): if s >= u'\u4e00' and s <= u'\u9faf': return True else: return False is_japanese(u'涼太')

Questions about programming?Chat with your personal AI assistant