腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
使用
format
-
python
时
出现
属性
错误
、
D = {'z': {'A': 'Hello', 'B': 'World'}} *** AttributeError:'dict' object has no attribute 'get("A")' 为什么我会得到这个
错误
,我应该如何修复它?
浏览 19
提问于2020-12-10
得票数 0
1
回答
使用
FormatException
时
出现
string.
Format
错误
、
运行此方法
时
,输入字符串的格式不正确。
浏览 0
提问于2018-10-29
得票数 0
回答已采纳
1
回答
使用
format
()内置函数
时
出现
错误
消息
、
、
下面是我的代码和
错误
消息:SyntaxError: invalid character in identifier 根据我正在阅读的书
浏览 0
提问于2017-04-25
得票数 2
1
回答
使用
python
解析文件
时
出现
属性
错误
、
、
我
使用
了以下代码。然后
使用
next()部分跳过不包含有用信息的行。然而,我一直收到这个
错误
:def process_line(percent): number = int(
浏览 0
提问于2013-11-22
得票数 0
3
回答
使用
Python
创建类
时
出现
属性
错误
、
当我尝试实例化工具箱
时
,我会尝试向其中添加一些工具。我的方法是将其创建为列表,并向其追加新元素。它返回一个"None“类型的
属性
,我不知道如何修复它。
浏览 44
提问于2021-05-03
得票数 0
回答已采纳
2
回答
使用
.
format
()
时
出现
psycopg2编程
错误
、
、
、
、
我不确定这里到底发生了什么,但这可能与
python
中的格式有关。运行此命令会导致
错误
。x = '00000201000012EB'conn.execute(sql)但是,当我像这样运行命令
时
: sql = """
浏览 25
提问于2018-07-21
得票数 2
回答已采纳
2
回答
AttributeError:'set‘对象没有'
format
’
属性
、
我正在尝试下面的代码,弹出了
属性
错误
。我是
Python
的新手,很想知道我能做些什么来纠正这个
错误
。json_file,csv_file,column_names) row.append({0}.
format
get_row(line_contents,column_names))
浏览 0
提问于2017-05-03
得票数 0
回答已采纳
1
回答
使用
属性
函数定义
Python
类
时
出现
属性
错误
、
、
我尝试创建一个
python
Class对象,如下所示: class mine: main() 我尝试在
Python
-2.7和
Python
-3中运行,结果相同。我得到了一个
错误
: Trace
浏览 24
提问于2020-04-10
得票数 0
回答已采纳
2
回答
在
Python
中
使用
海龟
时
出现
属性
错误
、
、
、
、
我试图从海龟构建蛇,但在
使用
海龟类中的.xcor(),.ycor(),.pos()函数
时
遇到了
属性
错误
。基本上,从turtle类返回值的任何东西在我的程序中都不起作用。self.ycors.append(ycor)Traceback (most recent call last): File "/Users/gcinco/Documents/
Python
Jett-Black/SNAKE/snake.py&qu
浏览 0
提问于2021-04-25
得票数 0
1
回答
使用
Python
多线程
时
出现
的
属性
错误
、
我收到一个
错误
:class Park_Stat_Thread(Thread): response = requests.get(base.
format
(self.thread
浏览 0
提问于2020-03-14
得票数 0
回答已采纳
1
回答
使用
Python
.
format
() KeyError
时
、
、
、
、
基本上,我定义了一个类,并试图在print语句编辑中显示它的
属性
: """ Default Class for the player """= 9 '{maxhealth}'.
format
我只是想找到一种更有效的方法来显示类的
属性<
浏览 2
提问于2015-10-29
得票数 1
回答已采纳
1
回答
执行
python
代码
时
出现
属性
错误
、
我有一个
python
代码,我想在GNU无线电伙伴中运行,但我无法搜索正确的块来执行该code...can,有人能帮我吗??当我执行相同的
python
代码(不是在GNU中)
时
,我得到以下
错误
:代码如下所示:from gnuradio import blocksfrom
浏览 0
提问于2014-04-16
得票数 1
1
回答
django管理模型syncdb不工作
、
、
以下
Python
代码会产生一个
错误
: author = models.CharField(max_length=40,blank=False,datetime.now() super(Post, self).save()我尝试过的:我
浏览 1
提问于2012-07-31
得票数 1
回答已采纳
1
回答
接口:
使用
3.3.4版
时
,模块“can”没有
属性
“AttributeError”
、
我正在尝试
使用
can-
python
库发送can消息,
出现
以下
错误
:模块'can‘没有
属性
’AttributeError‘代码try: print("Message sent on {}".
format
浏览 100
提问于2021-05-13
得票数 0
2
回答
`datetime.strftime`和`datetime.strptime`对%Y的解释不同
、
、
我
使用
如下所示的语句从字符串创建datetime对象:稍后,我的代码中的某处
使用
t对象,并
使用
相同的格式字符串调用因此,我必须做以下工作,以确保我不会接受像23这样糟糕的年份
format
= "%Y-%m-%d"
浏览 0
提问于2011-11-28
得票数 6
回答已采纳
2
回答
软件
属性
中的其他驱动程序崩溃
、
我试图
使用
软件
属性
(软件-
属性
-gtk)来安装nvidia驱动程序。当我打开“附加驱动程序”选项卡
时
,它只是说“搜索其他驱动程序.”然后Apport告诉我Ubuntu有一个内部
错误
。可用的额外驱动程序永远不会
出现
,列表将保持为空。当我从终端运行软件-properties-gtk
时
,我在崩溃前得到以下输出: File "/usr/lib/
python<
浏览 0
提问于2014-01-11
得票数 1
回答已采纳
1
回答
在
python
中
使用
链接列表
时
出现
属性
错误
、
我对
python
很陌生,我正在尝试模拟链接列表的工作方式。我有以下代码: a , b = x , x.next.next a.next = b b = b.next.next File "D:\wor
浏览 0
提问于2015-02-23
得票数 0
回答已采纳
1
回答
使用
.grid
时
出现
python
3.6 Tkinter标注
属性
错误
、
当重复
使用
时,仅
使用
tk.Label命令将覆盖现有标签,因此我尝试将标签分配给一个变量:我想稍后
使用
.configure命令更改此文本,但收到以下
错误
: Exception in
浏览 23
提问于2018-01-21
得票数 0
回答已采纳
1
回答
为什么在
使用
format
.join函数
时
出现
错误
、
c = conn.cursor()请问本代码中的
错误
是什么?我一直拿着这个 OperationalError: near "(":语法
错误
)
浏览 4
提问于2021-04-06
得票数 0
1
回答
字符串格式
错误
、
、
使用
Python
3.1.1中的代码print('{0} is not'.
format
('That that is not')),我得到以下
错误
:当我删除在开头自动插入的Netbeans行时:它本身会导致以
浏览 3
提问于2010-03-16
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券