![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错与解决
han__sha
这个作者很懒,什么都没留下…
展开
-
[python] TypeError: 'str' object does not support item assignment
s = "today is sunday" 如果想要将sunday的s大写,直接 s[9] = "S" 是会报错 TypeError: 'str' object does not support item assignment。因为python里的string是immutable的。 更改的最简单方式是将其转化为list后再用''.join转换回来: s = list(s) s[9] = "S...原创 2019-12-05 18:39:21 · 1350 阅读 · 0 评论 -
[vue] Vue packages version mismatch 报错解决方法
在用vue-cli创建project时, vue create project 出现了vue packages version mismatch的报错 /usr/local/lib/node_modules/@vue/cli/node_modules/vue-template-compiler/index.js:10 throw new Error( ^ Error: Vu...原创 2019-10-22 08:53:49 · 12073 阅读 · 2 评论