![240](https://cdn2.jianshu.io/assets/default_avatar/3-9a2bcc21a5d89e21dafc73b39dc5f582.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP属地:天津
中文字符对齐有陷井,先看一个例子:输出四行字符,右对齐 str1="中" str2="中文" str3="中文对" str4="中文对齐" pr...
字符的格式化输出是我们在学习python时经常遇到的一个问题,总结一下: 1.简单对齐: ljust() 语法: string.ljust(wi...
例1 list1 = ['1','2','3','4','5'] for i in list1: list1.remove(i) print...
python3.8.2 ,windows7 常见空白字符有:空格(space,转义字符' '),水平制表符(tab,转义字符'\t'),...