python基础学习day05.txt
day04回顾字符串方法对象.方法名(方法传参列表) S.isdigit() S.isalpha() S.count(sub[, start[, end]]) S.find(sub, start, end) S.replace(old, new[, count]) S.startswith(prefix) S.endswith(suffix) >>> help(str) #查看字符串的文档帮助字符串的格式化表达式格式化字符串%参数格式化字符串% (参数1,参数2, ....) %d %s %f %x %o %g %e %%占位符- + 0宽度.精度类型码循环语句while语句for语句while语法: while真值表达式:语句块1 else:语句块2 while语句的嵌套break语句死循环death loop for语句作用:用来
7.06KB
文件大小:
评论区