fork(1) download
  1. words = '''あいう'12"3456'''
  2.  
  3. print("半角の文字は以下です")
  4. for elem in words:
  5. if elem.encode('utf-8').isalnum():
  6. print(elem)
Success #stdin #stdout 0.04s 9372KB
stdin
Standard input is empty
stdout
半角の文字は以下です
1
4