老师,我把hello world 换成汉字就不对了,咋回事?
老师我现在在改一个springboot的项目,想把他的properties文件的内容全部改成yml文件内容。
但是这个地方的
file.root.path
img.rootpath
attachment.roopath
在yml配置文件中找不到,不知道怎么处理
如果不释放properties的这几个配置文件,就启动不了程序,我的目的是只需要yml一个配置文件就可以启动。
老师,我按照要求改了,为啥我的后面还显示的是文件夹
我自己从网上下载了《无地自容》这首歌,是wav格式,有53mb大小,结果跑出来的结果报错,报的是:memory error。这是为什么呢,望告知。
老师,视频中说绿色括号里的是函数,红色括号里的是特征值,这个是通过什么求出来的呢?
使用
这个错误
'Specifying a namespace in include() without providing an app_name ' django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Se
这个可以解决
这怎么提示错误了,是映射出了问题了吗?怎么解决呀?
老师你好
请问数组是放在类中声明,还是放在main方法中声明使用?
如果数组是本身是引用类型,那么像“ int [ ][ ] a ; ”中的int是什么意思?
/** * 账户类 */ class Account1{ // 账户 private String account1; // 账户余额 private double balance; public Account1() { } public Account1(String account1, double balance) { this.account1 = account1; this.balance = balance; } public String getAccount1() { return account1; } public void setAccount1(String account1) { this.account1 = account1; } public double getBalance() { return balance; } public void setBalance(double balance) { this.balance = balance; } } /** * 取款线程 */ class DrawThread1 extends Thread{ // 账户对象 private Account1 account1; // 取款金额 private double drawMoney; public DrawThread1(String name,Account1 account1,double drawMoney){ super(name); this.account1 = account1; this.drawMoney = drawMoney; } /** * 取款线程的线程体 */ @Override public void run() { // 使用synchronized块实现线程同步 synchronized (this.account1) { // 当前账户对象作为线程锁 if(this.account1.getBalance() >= this.drawMoney){ System.out.println("取款成功,吐出钞票:"+this.drawMoney); try { Thread.sleep(1000); // 线程休眠1s } catch (InterruptedException e) { e.printStackTrace(); } // 更新账户余额 this.account1.setBalance(this.account1.getBalance() - this.drawMoney); System.out.println("账户余额:"+this.account1.getBalance()); } else { System.out.println("取款失败,账户余额不足"); } } } } /** * 取款 */ public class DrawMoneyThread2 { public static void main(String[] args) { // 实例化账户对象 Account1 account1 = new Account1("1234",1000); // 启动线程 new DrawThread1("老公",account1,800).start(); new DrawThread1("老婆",account1,800).start(); } }
为什么线程名没有设置成功?
老师,这个SqlSessionFactoryBean又不是SqlSessionFactory的子类,怎么就能直接注入,想不通为什么?
老师,这个扩容的话,是随机的吗,容量是直接添加到数组后侧吗
import math x1 = int(input("请输入点1的x轴坐标:")) y1 = int(input("请输入点1的y轴坐标:")) x2 = int(input("请输入点2的x轴坐标:")) y2 = int(input("请输入点2的y轴坐标:")) dian1 = (x1,y1) dian2 = (x2,y2) while True: x3 = int(input("请输入点3的x轴坐标:")) y3 = int(input("请输入点3的y轴坐标:")) dian3 = (x3,y3) if (x3-x2)/(y3-y2)==(x3-x1)/(y3-y1): print("请重新输入:") else: break l1 = math.sqrt((x1-x2)**2+(y1-y2)**2) l2 = math.sqrt((x1-x3)**2+(y1-y3)**2) l3 = math.sqrt((x3-x2)**2+(y3-y2)**2) c = l1+l2+l3 area = math.sqrt(c/2*(c/2-l1)(c/2-l2)*(c/2-l3)) print("三角形的周长是"+str(c)+":"+"三角形的面积是"+str(area))
作业不会做,我这个报错是因为,浮点数不能参与计算吗?我要怎么解决这个问题
老师我想问一下:工作当中是继承Thread类用的多一点,还是实现Runnable接口用的多一点。
老师,请问这些容器存元素的时候,除了一个一个put/add进去,还可以怎么操作?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637