摘要: 1、capitalize() 与 title() 区别 capitalize(): 字符串第一个字母大写 title(): 字符串内的所有单词的首字母大写 a="i say hello to you" print(a.title()) # 'I Say Hello To You' print(a.c 阅读全文
posted @ 2020-06-30 18:48 一帘清梦 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 谨以此贴记录springboot+mybatis-plus开发项目遇到的问题及解决方案 1、Web server failed to start. Port 8002 was already in use. Identify and stop the process that's listening 阅读全文
posted @ 2020-06-09 09:19 一帘清梦 阅读(3972) 评论(0) 推荐(0) 编辑
摘要: requests请求后,response.text打印后是一个形似dict的东西,打印其类型,发现为Unicode类型。 此时若直接将其当做dict来索引,会报错 TypeError:string indices must be integers 解决此问题,需要先将Unicode类型的数据转换成 阅读全文
posted @ 2018-09-11 17:45 一帘清梦 阅读(1069) 评论(0) 推荐(0) 编辑