腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(303)
视频
沙龙
2
回答
Python
速成
课程
Eric
Matthes
python
我是编程的初学者。在第16章的工作中,我对其中的一段代码感到困惑。1. for name , code in COUNTRIES.items(): return code将"us“打印为美国的代码。 在不匹配country_name的情况下使用else时,第二个代码为
浏览 34
提问于2020-05-22
得票数 0
回答已采纳
2
回答
从终端运行
Python
程序
python
、
python-3.x
我正在编写
Eric
Matthes
的"
Python
速成
课程
“一书中的第16页,第1章。我正在尝试从我的Windows端运行我的Windows程序。说明书上写着:C:\> **cd Desktop\
python
_work** hello_world.py C:\Desktop\
python
_wo
浏览 2
提问于2016-01-28
得票数 0
3
回答
Python
速成
班(第二版)练习9-8
python
关于
Python
速成
班(第二版)中练习9-8的解决方案,我有一个问题。
eric
= Admin('
eric
', '
matthes
', 'e_
matthes
', 'e_
matthes
@example.com', 'alaska')
浏览 3
提问于2021-01-01
得票数 0
回答已采纳
1
回答
第2行错误
python
速成
课程
eric
matthes
问题9-2
python
、
class
这是在第九章,三个餐厅的问题,说第二行的冒号有一个语法错误,我不明白为什么会这样,或者错误在其他地方。可能在某个地方输入了错误的东西,但不确定在哪里,可能是我忽略了一些简单的东西。谢谢。 代码如下: class Restaurant(): def__init__(self, name, cuisine_type): self.cuisine_type = cuisine_typedef describe_restaurant(self): msg = self.name + " serves won
浏览 26
提问于2021-10-17
得票数 0
2
回答
Python
while循环运行,但int()的用法不正确,无法输入“quit”
python
、
loops
我正在完成
Eric
Matthes
的
Python
速成
课程
的课本作业。#the flag is set to Trueelse: break #Per <em
浏览 0
提问于2020-05-20
得票数 0
1
回答
AttributeError:'NoneType‘对象没有'startswith’属性
python
、
pygal
q=language:
python
&sort=stars"forchart = pygal.Bar(style=my_style, x_label_rotation=45, show_legend=False) chart.title = "Most starred
Python
我正在尝试使用pygal模块将具有最多星星的
python
项目绘制到条形图上。该任务来自
Er
浏览 432
提问于2018-08-23
得票数 0
回答已采纳
1
回答
我需要帮助来理解为什么会出现属性错误
python
、
python-3.x
我刚开始从
Eric
Matthes
的
python
crash
课程
学习
python
,它一直告诉我有一个属性错误 motor_bikes = 'harley', 'Fz07', 'Crouch rocket
浏览 0
提问于2019-05-12
得票数 1
1
回答
pygame窗口无法关闭
python
、
pygame
、
window
我目前正在学习
Eric
Matthes
的
Python
速成
课程
(第一版),并且正在尝试制作一个pygame程序。(我正在使用
Python
3.7.6、Spider 4.1.4和pygame 1.9.6。)更新:
浏览 2
提问于2020-08-05
得票数 2
3
回答
在pygame中打印按键事件时的预期输出
python
、
pygame
我正在阅读
Eric
Matthes
的"
Python
速成
课程
“这本书,并且正在做练习12-4 "Keys”。本练习的目的是测试打印每个按键事件的空白pygame屏幕的打印输出。
浏览 44
提问于2019-06-06
得票数 0
2
回答
Python
速成
班练习8-11
python-3.x
、
function
我正在阅读
Eric
Matthes
的
Python
速成
教程,我被8-11卡住了。我不太明白如何返回新列表并将其存储在单独的列表中。 到目前为止,我已经尝试通过复制列表来调用该函数。
浏览 1
提问于2019-07-30
得票数 0
1
回答
在jupyterlab notebook中导入模块
python
、
jupyter-notebook
、
jupyter-lab
、
modulenotfounderror
目前正在通过
Eric
Mathes提供的
Python
速成
课程
无法按照this is the error I have been receiving第243页的要求从另一个文件导入模块 我不确定是否将
浏览 27
提问于2020-08-11
得票数 0
1
回答
函数不发出请求
python
、
input
、
user-input
我正在通过一本名为"
Python
速成
课程
第二版“的书学习
python
,这本书是由"
Eric
”制作的,这本书告诉我下载一个名为Sublime的IDE。
浏览 7
提问于2021-01-04
得票数 0
回答已采纳
3
回答
访问字典中的嵌套列表
python
、
dictionary
、
nested
,但是使用d.values()只能得到以下输出我显然缺少关于这个主题的一些基本信息,但我在这里和
Eric
Matthes
的“
速成
课程
”中查找了,但仍然找不到一个可靠的解决方案。
浏览 30
提问于2021-02-21
得票数 0
回答已采纳
2
回答
如何在Pygame中制作带有透明背景的图像?
python
、
pygame
、
pygame-surface
我是编程新手,所以我买了
Eric
Matthes
的"
Python
速成
课程
“这本书。最近,我决定在Pygame中重现精灵宝可梦战斗系统。到目前为止,我已经做了一个足够好的框架来启动战斗系统。
浏览 46
提问于2020-06-28
得票数 1
回答已采纳
2
回答
我正在编写一条简单的print语句。然而,我在atom中得到一个语法错误
python
、
atom-editor
请注意,这段代码直接来自
python
书(
eric
mathes的第二版
python
速成
课程
)。当我运行代码时,它确实编译通过了常规的
python
idle3.7.5。我已经为atom编辑器安装了许多
python
包,包括
python
snippits、
python
tools、run-
python
-simply。但这似乎仍然不能编译。
浏览 3
提问于2019-10-04
得票数 0
1
回答
谁能解释一下为什么在这段代码中应该有一个for循环
python
我正在从一本书(
Eric
Matthes
的
python
crash course )中学习
python
,但我发现这段代码对我来说是不可能理解的。
浏览 15
提问于2019-05-28
得票数 0
1
回答
Python
3.8.6 (为matplotlib下载适当的安装程序)在带有Windows 10的膝上型计算机上
python
按照这本书第323页上的说明(
Eric
编写的“
python
速成
班”),我被告知我需要一个matplotlib安装程序,然后转到:,然后查找一个与我的
Python
版本(即:
Python
3.8.6(tagmatplotlib-3.3.4-cp38-cp38-win32.whl (8.3 MB)matplotlib-3.3.4-cp38-cp38-win_amd64.whl (8.5MB)) 从作者在书("
Python
速成
课程
“)中所说的情况来看
浏览 2
提问于2021-01-30
得票数 0
回答已采纳
1
回答
推送被拒绝,无法在heroku中编译
Python
应用程序(
Python
速成
课程
)
python
、
django
、
python-3.x
、
heroku
我正在研究
Eric
Matthes
的
Python
速成
课程
中的学习日志项目,特别是学习日志应用程序。我正在尝试部署到heroku,但是得到了这个错误:remote: -----&
浏览 6
提问于2019-08-20
得票数 1
1
回答
pygame程序运行后窗口冻结
python
、
pygame
、
python-3.6
我正在学习pygame,并且一直在研究
Eric
Matthews ()的“
Python
速成
课程
”一书中给出的例子。我已经在macOS高山上安装了PyGame1.9.3版。当我运行下面的程序时,一个窗口打开,当我点击'X‘关闭它时,窗口冻结,诅咒继续循环,我在活动监视器中得到一条
python
not responding错误。
浏览 6
提问于2017-12-17
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券