随手记Python注意的小点

1.常用的a = a + b 一般可写为 a += b     注:+=之间无空格

2.print输出变量时要为字符串型,否则用str(item) 转换输出。

猜你喜欢

转载自blog.csdn.net/qq_27276951/article/details/82597189