add = “https://mp.csdn.net/console/article” 一个简单的for循环 for i in add: if i == ‘.’ : #终止循环 break print(i,end="") print("\n执行循环体外的代码")