-
https://blog.csdn.net/xufwind/article/details/88398863
-
字符串取前几位
str='123456' print(str[0:3]) >>>123
-
strip()方法,去除字符串开头或者结尾的空格
a = " a b c "
a.strip()
'a b c'
-
python 全局变量 (参考博客:https://www.cnblogs.com/yanfengt/p/6305542.html)
-
python int转string
a = 1
b = str(a) + ','
- AWarning: Ignoring declarative-like tuple value of attribute user_level
解决:
参考博客:[https://blog.csdn.net/weixin_44706915/article/details/105250253](https://blog.csdn.net/weixin_44706915/article/details/105250253)