老师,这个为啥报错呀,和课件上一样,还是不对
没有服务号怎么办?
回复楼上,@王浩信,老师写错了它口头说的24是对的,12 << 1 肯定就是24啊,只不过它写的时候写错了。因为后面要用到newThr,7:24时老师再次说了newThr为24。
老师,为啥我的这个报错呀
<artifactId>spring-boot-maven-plugin</artifactId>
老师你好
16行中的const常量不是一旦定义之后就不能再被修改了嘛
这段话没理解,什么叫字典表......
老师,整理格式的插件叫什么呢?我忘记了
WebDemo.zip
老师,我的登录直接就直接跳转到这了,今天一天时间都卡在这没研究出原因,麻烦帮忙查看一下
#encoding=utf-8 import time class HuanCun: __huancun={} def __init__(self,func): self.func=func def __call__(self, *args, **kwargs): if self.func.__name__ in HuanCun.__huancun: return HuanCun.__huancun[self.func.__name__] else: result=self.func(*args,**kwargs) HuanCun.__huancun[self.func.__name__]=result return result def costtime(func): def infunc(*args,**kwargs): start=time.time() reslut=func(*args,**kwargs) end=time.time() print(end-start) return reslut return infunc @HuanCun @costtime def test(): print("start......") time.sleep(3) print("......end") return 9999 if __name__ == '__main__': t1=test() print("......") t2=test()
第二次调用函数没有显示耗时时间
老师 我这边想写一个分解式的多对多查询但是查询的结果就是没有对应的students这是为什么
MyBatis.zip
呢。
怎么才能执行到异常那一部分
class A implements Runnable{ private Thread b; public A(Thread b){ this.b=b; } @Override public void run() { for (int i=0;i<10;i++){ System.out.println(Thread.currentThread().getName()+" A "+i); if (i==6){ try { b.join(); } catch (InterruptedException e) { throw new RuntimeException(e); } } try { Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } } } } class B implements Runnable{ @Override public void run() { for (int i =0;i<20;i++){ System.out.println(Thread.currentThread().getName()+" B "+i); try { Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } } } } public class TestJoinThread{ public static void main(String[] args) { Thread t1 = new Thread(new A(t)); Thread t = new Thread(new B()); t1.start(); t.start(); for (int i=0;i<10;i++){ System.out.println(Thread.currentThread().getName()+" 主线程 "+i); if (i==4){ try { t1.join(); } catch (InterruptedException e) { throw new RuntimeException(e); } } try { Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } } } }
Thread t1 = new Thread(new A(t)); Thread t = new Thread(new B());
为什么写成这样报错,不都是把B给A里了吗
Thread t1 =
new
Thread(
B());
Thread t =
A(t1));
视频是这样的
还有为什么要先创建线程B的对象
老师我没有返回任何东西是什么情况?
老师,三个单引号或者三个双引号之前说是可以用作多行注释是吧,跟#号单行注释一样是不会被运行的。是不是当它用在定义字符串的时候,就是写在 = 后面的时候就被运行了?#号是不是就没这个额外功能?
老师在这里用null参数是做什么,查询所有权限的时候
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637