- 字符串取前几位
str='123456' print(str[0:3]) >>>123
- strip()方法,去除字符串开头或者结尾的空格
a = " a b c "
a.strip()
'a b c'
- python 全局变量
- python int转string
a = 1
b = str(a) + ','
- AWarning: Ignoring declarative-like tuple value of attribute user_level
解决:
str='123456'
print(str[0:3])
>>>123
a = " a b c "
a.strip()
'a b c'
a = 1
b = str(a) + ','
C++1.左值引用和右值引用:link2.可变参数解析:link
这篇文章主要是记录一些常用的小技巧, 日积月累, 用的时候直接粘贴复制即可。 .
前言 我是歌谣 放弃很容易 但是坚持一定很酷 微信公众号关注前端小歌谣带你进入前端巅峰交流群 今天继续对前端
前言 我是歌谣 放弃很容易 但是坚持一定很酷 微信公众号关注前端小歌谣带你进入前端巅峰交流群 今天继
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M