腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
mysql
python
:
AttributeError
:'
str
‘
对象
没有
属性
'
cursor
’
mysql-python
这是我的代码 class database(): self.connection =
mysql
.connect ( return self.
cursor
.execute(sql) database().
浏览 302
提问于2021-07-15
得票数 0
1
回答
"
AttributeError
:'
str
‘
对象
没有
’
cursor
‘
属性
“
mysql
、
python-3.x
、
flask
connection_type_id')
cursor
= conn
浏览 1
提问于2019-11-15
得票数 0
1
回答
AttributeError
("'
str
‘
对象
没有
’
cursor
‘
属性
“,)
python
、
sqlite
、
bottle
我已经查找了bottle-sqlite的指南和教程,但
没有
太多的资源可以帮助我解决这个问题。感谢您的帮助,谢谢。def positions_list(db, limit=10): sql = "SELECT id, timestamp, owner, title, location, company, description FROM positions ORDER BY TIMESTAMP DESC LIMIT "+
str
(limit)+""
浏览 1
提问于2018-04-13
得票数 0
1
回答
AttributeError
:'tuple‘
对象
没有
属性
'encode’- MySQLdb
Python
python
、
mysql
、
pycharm
、
encode
、
mysql-python
我正在用
MySQL
编写
Python
代码。我的DB模式如下:| id | name || | |以下是我的代码的一部分:query = ("SELECT name FROM TABLENAME WHERE id = '%s'", (
str
(id.decode('unicode_escape'
浏览 1
提问于2016-02-11
得票数 4
回答已采纳
1
回答
AttributeError
:'list‘
对象
没有
属性
值’
python
、
mysql
我使用
python
3.7和
mysql
。为此,我这样写了我的代码:
cursor
= connection.
cursor
(dictionary=True)com_
str
=
cursor
.fetchall() com_
str</
浏览 3
提问于2022-01-19
得票数 0
回答已采纳
2
回答
Python
-
AttributeError
:'NoneType‘
对象
没有
'
cursor
’
属性
python
、
pyodbc
我有以下代码:
cursor
= conn.
cursor
()
cursor
.execute(stringA)它多年来一直工作得很好= conn.
cursor
()
Attri
浏览 215
提问于2018-02-06
得票数 6
回答已采纳
2
回答
Python
AttributeError
'
str
‘
对象
没有
属性
’
str
‘
python
、
eclipse
我在
python
ecplise中遇到一个错误,并且我
没有
找到解决它的方法。_sName ''' '''下面是erorr with
属性
: Traceback (most r
浏览 0
提问于2015-11-09
得票数 1
1
回答
当试图通过
Python
连接
MySQL
(使用Pycharm)时,游标()和connection()方法不起作用
mysql
、
python-3.x
、
mysql-connector-python
我正在尝试通过
python
连接
MySQL
数据库。我最初安装了
mysql
-连接器,但
没有
工作。后来,我安装了
mysql
-连接器-
python
和连接成功。但是,当我尝试使用游标()时,会得到错误:import _
mysql
_connector mydb = _
mysql
_connector.
MySQL
().connect(host="localhost", user="root", pa
浏览 1
提问于2019-12-04
得票数 0
1
回答
Python
:'
str
‘
对象
没有
属性
’
AttributeError
‘
python
我试图在一个特定的目录中找到有30天历史的文件,将它们移动到一个新文件夹并压缩该文件夹,但是当我执行我的脚本时,抱怨
AttributeError
:'
str
‘
对象
没有
属性
'append' import os
浏览 1
提问于2014-06-03
得票数 0
回答已采纳
2
回答
Python
:“
str
”
对象
没有
属性
“”
AttributeError
“”
python
我正在尝试用
python
创建一个非常简单的日志解析器脚本。一切都按计划进行,除了目标计算机上的脚本返回此错误(该脚本在unix计算机上工作,尽管相当好):Attribute Error: '
str
'object has no attribute 'namelist'
Python
版本似乎是相同的(在两台机器上都是2.7.3)。
浏览 0
提问于2013-01-10
得票数 2
回答已采纳
1
回答
Python
:“
str
”
对象
没有
属性
“
AttributeError
”
python
Users\DuckyGoh\Desktop\1003\tt3.py", line 43, in listGrades
AttributeError
: '
str
' object has no attribute 'items' 有人能告诉我我的错误以及如何解决这个问题吗?
浏览 18
提问于2019-10-12
得票数 1
回答已采纳
3
回答
Python
:'
str
‘
对象
没有
属性
’
AttributeError
‘
python
、
string
我是全新的,学习
Python
的。 else: g+=1 hstr=
str
\
Python
39\lib\tkinter\__init__.py", line 1884, in __call__ File &quo
浏览 2
提问于2021-03-29
得票数 0
回答已采纳
1
回答
python
attributeError
:'
str
‘
对象
没有
属性
python
当我试图运行一些
python
代码时,我会得到下面的错误。vlan, "interface " + iface, "switchport mode access", "switchport access vlan " + vlan, "end" ])我的代码是:from jsonrpcl
浏览 1
提问于2014-02-28
得票数 0
回答已采纳
2
回答
Python
:'
str
‘
对象
没有
属性
’
AttributeError
‘
python
、
tkinter
、
attributeerror
所以,我刚刚开始,下面是我的源代码:from tkinterl.pack()当我运行时,我的程序会出现以下错误: /usr/bin/
python
3.4 /home/rajendra/PycharmProjectspythonProject01/myPackage
浏览 0
提问于2015-07-11
得票数 3
回答已采纳
1
回答
Python
Facebookchat
AttributeError
'
str
‘
对象
没有
属性
’
str
‘
python-3.x
我试着用
python
给我的朋友发消息。但是我得到了这个错误。sent = client.send(friend.uid, msg)
AttributeError
: '
str
' object has no attribute '_
浏览 18
提问于2020-01-06
得票数 0
回答已采纳
1
回答
mysql
.connect()在with语句中使用时返回不同类型
python
、
mysql
、
flask
我使用的是烧瓶-
MySQL
,之前我做了以下工作:
cursor
= db.
cursor
()
cursor
.close()db.close()with
mysql
.connect() as db, db.
cursor
() as
cursor
:它给我以下错误"
浏览 0
提问于2016-01-26
得票数 1
回答已采纳
1
回答
带有sql变量的
Python
3
python
、
mysql
、
sql
、
select
你好,我目前正在使用
python
。我有一个通过查询从数据库中选择数据的文件。但是我想选择在时间戳上过滤的数据。我可以选择所有的数据(用简单的选择.(从桌子等)。到目前为止,这是我的代码:import timef = '%Y-(user='**', password='**', host='**', database='*db
浏览 8
提问于2013-10-20
得票数 0
2
回答
具有动态表名的
MySQL
选择查询
python
、
mysql
、
sql
、
select
我试图用
MySQL
从
Python
中获取所有行。当表名是变量时,如何从表中提取所有行?
cursor
= self.conn.
cursor
() try: value
浏览 4
提问于2016-03-07
得票数 1
回答已采纳
1
回答
Python
AttributeError
:“
str
”
对象
没有
属性
“”decode“”
python
我正在做一个关于
Python
的项目,它允许使用日志进行基本的TCP通信。但是正在接收的数据是以B前缀接收的。 print(data.decode('utf-8'))
AttributeError
: '
str
' object has no attribu
浏览 0
提问于2018-06-22
得票数 2
回答已采纳
1
回答
Python
:
AttributeError
:'
str
‘
对象
没有
属性
'datetime’
python
、
strptime
then divide by 60 to get minutes.从这个问题: start_date_dt = datetime.datetime.strptimein > calcDateD
浏览 1
提问于2016-03-11
得票数 3
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券