老师,我这个pycham每次都说没有解释器运行是什么原因呀,点了也能用但是就是每次都要点,是要安在c盘才可以吗?
a=b=((a)) ((b)) (a) (b)
C:\Users\Administrator\PycharmProjects\pythonProject01\venv\Scripts\python.exe C:/Users/Administrator/PycharmProjects/pythonProject01/my02.py
<class 'int'>
<class 'str'>
88
Process finished with exit code 0
是不是“”里面代表的是字符串,但是输出结果都是88
怎么有点不同
你好老师,通过这几天的学习,发现自己学习效率有点低,因为每节课都会认真做笔记,导致自己两个小时的课程可能要学三个多小时甚至四个小时,我想请问一下老师对初学者来说有没有好的学习方法,提高学习效率?
d = [{'吕布': 108},{'关羽': 107},{'周仓': 79},{'许褚':105},{'李典':96},{'赵子龙': 105}]
老师,请问在以单键值对字典为元素的列表中,如何按照字典中的值的大小对列表元素进行排序
老师,我这个运行的结果怎么和你的不一样
C:\Users\Administrator\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/Administrator/PycharmProjects/pythonProject1/main.py Traceback (most recent call last): File "C:\Users\Administrator\PycharmProjects\pythonProject1\main.py", line 6, in <module> turtle.left("90") File "<string>", line 8, in left File "C:\Programs Files\Python310\lib\turtle.py", line 1700, in left self._rotate(angle) File "C:\Programs Files\Python310\lib\turtle.py", line 3268, in _rotate angle *= self._degreesPerAU TypeError: can't multiply sequence by non-int of type 'float' Process finished with exit code 1
这是什么情况啊?
老师我的代码可以正常运行,下面那一连串PEP报错是什么?
老师我这个文件后缀是不是有问题啊
不小心下载成了3.10.2版本,需要卸载重装吗
老师在打开PyCharm的时候出现这种情况是怎么回事呢
老师,这个say_score语句是固定的,还是任意的都可以
import turtle a=input("请输入一个x:") b=input("请输入一个y:") c=input("请输入一个width:") d=input("请输入一个height:") class MyRectangle: def __init__(self,x,y,width,height): self.x=x self.y=y self.width=width self.height=height if self.x=="": self.x=0 if self.x!="": self.x=float(x) if self.y=="": self.y=0 if self.y!="": self.y=float(y) if self.width == "": self.width = 100 if self.width!="": self.width=float(width) if self.height == "": self.height = 100 if self.height!="": self.height=float(height) def getArea(self): return self.width*self.height def getPerimeter(self): return 2*(self.height+self.width) def draw(self): turtle.color("red") turtle.penup() turtle.goto(self.x,self.y) turtle.pendown() turtle.right(90) turtle.forward(self.width) turtle.right(90) turtle.forward(self.height) turtle.right(90) turtle.forward(self.width) turtle.right(90) turtle.forward(self.height) turtle.done m1=MyRectangle(a,b,c,d) print(m1.getArea()) print(m1.getPerimeter()) m1.draw()
老师,为什么我在调用draw方法的之后海龟作图不显示?
s='global' def outer(): s='outer' def inner(): s='inner' print(s) inner() outer()
老师,print(s)后面的inner 和outer 有什么作用
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637