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