代码示例:(标识:python_for_string)
python_for_string.py
for x in "banana":
  print(x)
运行结果: