老师,老师,get不是获取值的意思吗,为啥这里get完之后,就可以直接通过self.rect.left=直接改变left的值了,是这里固定搭配吗
为什么运行出来和视频不一样
从数据库可以直接拿到数据
但是改成redis缓存的就是这个样子
页面显示这个样子,而且没有数据
代码1:
class Teacher{ int teacherId; Person1 person1=new Person1(); public Teacher(int teacherId, Person1 person1) { this.teacherId = teacherId; this.person1 = person1; } }
代码2:
class Teacher { int teacherId; Person1 person1 = new Person1(); Teacher(int teacherId,String name,int height){ this.teacherId = teacherId; this.person1.name = name; this.person1.height = height; } }
其中Person1有两个属性:name、height
那么在构造器Teacher中两个代码的效果是不是一样的。
老师,这个为什么是空列表
老师,这里我不太清楚,为什么要加个成员变量?不加,然后直接while(fis.read() != -1)这样写又会有什么影响呢?
登录案例.zip
和老师的一样,为什么点击登录后没反应呢
没看见资料啊
两个虚拟机信息为什么会是同步的,修改一个配置文件两个虚拟机的都改变,没法设置两个server_id
在登陆页面,不管输入什么账号密码,都是进入error页面,数据库可以连接
WEBDEMO.zip
我的在sudoers中写入了还是不能执行sudo命令
老师 没有注册激活 可以一直使用吗
from threading import Thread,BoundedSemaphore from time import sleep def an_JIan(number): renshu.acquire() print(f"第{number}个人在安检") sleep(3) renshu.release() if __name__ == '__main__': renshu=BoundedSemaphore(3) for x in range(10): t1=Thread(target=an_JIan,args=(f'{x+1}',)) t1.start()
#老师我的运行结果每次不一样是怎么回事呢
'''
第1个人在安检
第2个人在安检
第3个人在安检
第4个人在安检
第6个人在安检
第5个人在安检
第8个人在安检
第7个人在安检
第9个人在安检
第10个人在安检
进程已结束,退出代码为 0
第二种如下:
import copy def employeeSalary(): salary = [] sum = 0 while True: enter = input("Enter your salary, please (press Q or q to finish the programme) : ") num = copy.deepcopy(enter) #这里出现了错误,我想对input的做一个判断如果不是Q或者q的话就把它转型成float类型进行比较 #请问一下应该怎么更改 python版本是3.7谢谢老师 if enter != "q" or enter != "Q": num = float(num) continue elif enter == "q" or enter == "Q": print("The programme is finished.") break elif num < 0: int(input("The salary of employee should not lower than 0, reenter the salary, please! : ")) elif num >= 0: salary.append(num) sum += num for i in salary: print("The employee salary is :", i) print("The number of employee is {0}, and the average of the employee salary is {1}".format(len(salary), sum/(len(salary)+1))) employeeSalary()
python版本3.7
request.args.get()是什么时候用
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637