240 发简信
IP属地:天津
  • python陷井:中文字符对齐

    中文字符对齐有陷井,先看一个例子:输出四行字符,右对齐 str1="中" str2="中文" str3="中文对" str4="中文对齐" pr...

  • python格式化输出总结

    字符的格式化输出是我们在学习python时经常遇到的一个问题,总结一下: 1.简单对齐: ljust() 语法: string.ljust(wi...

  • python陷井:for循环中list(列表)remove、del、pop

    例1 list1 = ['1','2','3','4','5'] for i in list1: list1.remove(i) print...

  • python删除空白字符总结笔记

    python3.8.2 ,windows7 常见空白字符有:空格(space,转义字符' '),水平制表符(tab,转义字符'\t'),...