07 2018 档案

摘要:# str#test='aLexeee'# v=test.capitalize() #字符串首字母大写方法# print(v)#将字符串中的大写转换成小写的方法,casfold()方法更牛逼能转换一些特殊的字符,不过常用lower()# v=test.casefold()# print(v)# v1 阅读全文
posted @ 2018-07-19 17:38 goodjr
摘要:countinue:终止当前循环 n=1 while n<10: print(n) n=n+1 countinue #执行到这里的时候不会继续执行print(123),跳回循环开始位置 while n<10 继续执行 print('123') break:终止整个循环 n=1 while n<10: 阅读全文
posted @ 2018-07-18 15:21 goodjr