老师,这里每行的列宽是怎么分配的,视频里没有讲到啊?是按照master的宽度自动设置的么?
老师,使用maven的时候经常报红应该怎么处理呢?配置完pom的依赖和插件,他去下载,经常这种地方报红
或者这种地方
他在下载的时候,也不知道下载了多少,刚刚配置maven-plugin这个插件时,整整两个多小时才下到本地仓库,有时候下载完了也会报红,请问这之间怎么查看下载进度呢?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> </style> </head> <body> <div class="one" style="width: 30px"></div> <script> var style_one=document.querySelector('.one').style; var width_1=style_one.getPropetryValue("width"); console.log(width_1); </script> </body> </html>
不知道为啥浏览器输出不了,报错
老师,请问为什么我在项目中也有建立a.txt文本文件,但是却出现FileNotFoundError: [Errno 2] No such file or directory: 'C:/a.txt'这个异常现象呢?是因为相对路径错误找不到文件还是,我没有管理权限去读取c盘的内容呢?这种情况应该如何解决啊?我找了相对路径去更改也没啥用,麻烦老师指点一下,谢谢。(感觉不解决下面的章节好像也无法进行实操了)
with open('C:/a.txt') as f: for line in f: print(line)
情况如下:
Major GC与full GC什么情况下会启动?
package com.Thread; //生产者和消费者模式 public class produceThreadTest { public static void main(String[] args) { //创建缓冲区 SyncStack ss = new SyncStack(); //启动生产者线程 produce producer = new produce(ss); new Thread(producer).start(); //启动消费者线程 new customer(ss).start(); } } //定义馒头类代表数据 class Mantou{ private int id; public int getId() { return id; } public void setId(int id) { this.id = id; } } //定义缓冲区 class SyncStack { //用数组表示放馒头的盒子 private Mantou[] mantous = new Mantou[10]; //定义索引用来操作盒子 private int index; //定义放馒头的方法 public synchronized void SetMantou(Mantou mantou) { //当馒头放满时,线程进行等待 while (this.index == this.mantous.length) { try { /** * wait()是Object类下的方法; * wait()语法:该方法需要在synchronized语句块中使用; * wait()执行后,线程会将持有的对象锁释放,并进入阻塞状态、使其他持有该对象锁的线程可以继续运行 */ this.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } this.notify(); this.mantous[this.index] = mantou; this.index++; } //定义取馒头的方法 public synchronized Mantou GetMantou() { while (this.index == 0) { try { this.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } //唤醒等待中的其中一个线程、需使用在synchronized语句块中 this.notify(); this.index--; return this.mantous[this.index]; } } //定义生产者线程类 class produce implements Runnable{ private SyncStack syncStack; public produce(SyncStack syncStack) { this.syncStack = syncStack; } public void run() { for(int i = 0;i < 10;i++){ Mantou mantou = new Mantou(); mantou.setId(i); this.syncStack.SetMantou(mantou); System.out.println("生成馒头 "+mantou.getId()); } } } //定义消费者线程类 class customer extends Thread{ private SyncStack syncStack; public customer(SyncStack syncStack) { this.syncStack = syncStack; } public void run() { for (int i = 0;i<10;i++){ Mantou mantou = this.syncStack.GetMantou(); System.out.println("取馒头 "+mantou.getId()); } } }
疑问:为什么我运行后,会先取馒头再生产馒头?
老师你好,
class test1:
def __init__(self,name,score): self.name = name self.score = score def student(self,age): print('{0}的分数是:{1},年龄是{2}'.format(self.name,self.score,age)) s1 = test1('gaoqi',100) print("--"*20) s1.student(18) print(s1.student.age)
age属性是局部变量,它难道不是student的实例方法中的属性吗?为什么这样调用就出错了,如果我想在test1类的外部访问这个age该如何访问?
老师念课件把我念糊涂了
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>构造函数</title> </head> <body> <script> function Car(lun1,lun2,lun3,lun4,ability) { this.lun1=lun1; this.lun2=lun2; this.lun3=lun3; this.lun4=lun4; this.ability=ability; } var myCar1=new Car('左前轮1','右前轮1','左后轮1','右后轮1',function () { console.log("能跑1"); }); var myCar2=new Car('左前轮2','右前轮2','左后轮2','右后轮2',function () { console.log("能跑2"); }); console.log(myCar1); console.log(myCar2); </script> </body> </html>
图片部分:
这样是对的吗
xml.zip
代码没错啊,都直接复制了教程代码,路径也没问题,是idea的问题么
老师 我也没有这个软件啊,不然我现在没法学了
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document节点练习</title> </head> <body> <script> var docTitle=document.title; //把标题字符串切割成数组 var titleArr=docTitle.split(''); //把数组的第一个元素删除,然后添加到最后 titleArr.puth(titleArr.shift()); //把数组合并为字符串 var newTitle=titleArr.join(''); document.title=newTitle; </script> </body> </html>
老师,我的为什么报错了呢?
老师,为什么我右键 Button 后点击了“Show Diagram”却什么都没有显示?
老师 ,hr用户权限都是create的,那他删除和修改表是在哪里设置的?
请问老师,这是怎么回事?我是按照视频里的方式敲得代码,谢谢
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637