![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python笔记
weixin_39973024
这个作者很懒,什么都没留下…
展开
-
python 1-day
1day python 基础 1.导入文件的时候,如果都不是py文件,会出错。因此文件后缀名必须要.py结尾。 python2种执行方式原创 2019-05-01 01:22:06 · 49 阅读 · 0 评论 -
字符串的魔法
str test = “alex” #首字母大写 v = test.capitalize() print(v) #全小写 更牛逼,很多未知的对应变小写 v1 = test.casefold() print(v1) #全小写 只能处理普通字符的 v2 = test.lower() print(v2) #设置宽度,并将内容居中 #20代指总长度 #* 空白未知填充,一个字符,可有可无 v = t...原创 2019-05-01 01:24:11 · 286 阅读 · 1 评论