当前位置:网站首页>Solve 'tuple' object has no attribute 'lower‘
Solve 'tuple' object has no attribute 'lower‘
2022-06-25 23:34:00 【_ Qilixiang】
A reproduction of the scene
think ss Is string , Not really !
ss = ('xyz',)
ss.lower() # At this point, it will be reported that the error has been corrected Why tuples , It's a string ? The author's information is as follows
ss = object . attribute ,
object . attribute It's just a string , What is it for? ss But it became a tuple ?
you 're right , That's it , There is a comma after the mistake , Just delete the comma
The solution is to let ss Is string , Otherwise, it can't be adjusted lower()
边栏推荐
- [Axi] interpretation of Axi protocol atomic access
- Repoptimizer: it's actually repvgg2
- Implementation of importing vscode from PDM
- Leaky API interface practical development series (13): gooseneck cloud service php-api two-dimensional array parameter transfer solution
- jdbc常见异常及错误解决办法汇总
- 关于go协程超时退出控制条件与方式分析
- Fegin client entry test
- 二进制、16进制、大端小端
- C1. k-LCM (easy version)-Codeforces Round #708 (Div. 2)
- Hbuilderx uses the gaude map to obtain the current location
猜你喜欢

Multithreaded learning 2- call control

What aspects should we start with in the feasibility analysis of dry goods?

LeetCode-1528-重新排列字符串-哈希表-字符串

做接口测试,这3种工具到底什么时候用?

RK3568+鸿蒙工控板工业网关视频网关解决方案

hiberate核心API/配置文件/一级缓存详解

Problem recording and thinking

Idea auto generator generates constructor get/set methods, etc

Pycharm student's qualification expires, prompting no suitable licenses associated with account solution

The first public available pytorch version alphafold2 is reproduced, and Columbia University is open source openfold, with more than 1000 stars
随机推荐
Implementation of importing vscode from PDM
记一次beego通过go get命令后找不到bee.exe的坑
首个大众可用PyTorch版AlphaFold2复现,哥大开源OpenFold,star量破千
LM small programmable controller software (based on CoDeSys) note XVII: PTO pulse function block
UE4 学习记录一 创建角色,并控制其移动
OpenJudge NOI 2.1 15:Counterfeit Dollar
RepOptimizer: 其实是RepVGG2
Pycharm student's qualification expires, prompting no suitable licenses associated with account solution
CAD中图纸比较功能怎么用
Hbuilderx uses the gaude map to obtain the current location
统计字符串中不同回文子序列的个数
LeetCode-1528-重新排列字符串-哈希表-字符串
My C language learning process
konva系列教程2:绘制图形
MySQL queries data by day, week, month, quarter and year
Basic operator
How to use drawing comparison function in CAD
问题记录与思考
Implementation of sequence table: static and dynamic
go中全类型等值判断解析&综合汇总