老师,请问什么时候用name,id,class,给标签命名
老师,为什么要把它封装起来,这样也能在控制台打印出来啊
老师,请问为什么用blur作为函数名,失去焦点事件触发后,并没有产生相应的动作。而我将blur换为b后就可以。
function blur(thi){
}
<input type='text' onblur='blur(this)'>
老师,这个请求到服务器为什么会有中文乱码现象?
老师这个模型的映射可不可以使用sqlalchemy,这个是python框架通用的吧,视频中的映射方式是django自己的orm映射方式么
老师我在进行命名空间的页面跳转的时候发现,就算给这个url起了名称,但是跳转的时候如果被上面的类型覆盖的话还会先跳转到覆盖的那个url而不会跳转到命名的这个类型,这是不是说明在写url的时候,必须给将我们想跳转的写在前面
老师我这里的series报错说没有reshape属性,于是我转换成了np的ndarray,但是ndaary报错说维度最多32个,该如何解决?
老师 为什么我的提交文件没反应 最后一步的返回值也没返回
public class Test01 { public static void main(String[] args) { System.out.println("step1"); try { int j=2/0; } catch (Exception e) { e.printStackTrace(); } System.out.println("step2"); } }
老师我这个代码怎么跑出来顺序有点不对啊
按道理说异常应该出现在中间的吧。
我用debug又正常了
求解答,这个异常报错的位置是随机的吗,还是这个是idea的问题。
老师,我看这个Spring整合junit,并没有用到AOP技术啊?添加jar包的时候,老师还特意强调,aop包必须使用,用来做注解方式时,使用AOP。Spring配置文件只是使用了context的注解扫描,没有用到AOP
老师,我这里不太明白,视频中老师说由于可移植性,不能写绝对路径,写相对路径。那什么代码又将相对路径转化为绝对路径?
egoshop.zip
老师,我在创建了store之后,我也引入和加载了vuex,出现了这个错误
老师。我JDK安装的版本为13,但是安装IDEA时,它自动设置为版本,请问怎么更改配置?
老师好像是我唤醒线程这一块出了问题运行连接都成功了就是聊天系统这一块似乎消息都在缓冲区我唤醒线程那一块出了问题 但是我校对了几遍也没发现那里出错了
package com.bzsxt; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; /** * 接收客户端的线程类 */ class ChatReceive extends Thread{ private Socket socket; public ChatReceive(Socket socket) { this.socket = socket; } @Override public void run() { this.receiveMsg(); } /** * 实现接收客户端发送的消息 */ private void receiveMsg(){ BufferedReader br = null; try{ br = new BufferedReader(new InputStreamReader(this.socket.getInputStream())); while(true){ String msg = br.readLine(); synchronized ("砸瓦鲁多"){ //把读取到的数据写入公共数据区 ChatRoomServer.buf="["+this.socket.getInetAddress()+"] "+msg; //唤醒发送消息的线程对象 "砸瓦鲁多".notifyAll(); } } }catch (Exception e){ e.printStackTrace(); }finally{ if (br != null){ try { br.close(); } catch (IOException e) { e.printStackTrace(); } } if (this.socket != null){ try { this.socket.close(); } catch (IOException e) { e.printStackTrace(); } } } } } /** * 向客户端发送消息的线程类 */ class ChatSend extends Thread{ private Socket socket; public ChatSend(Socket socket) { this.socket = socket; } @Override public void run() { this.sendMsg(); } /** * 将公共数据区的消息发送给客户端 */ private void sendMsg(){ PrintWriter pw = null; try{ pw = new PrintWriter(this.socket.getOutputStream()); while(true){ synchronized ("砸瓦鲁多"){ //让发送消息的线程处于等待状态 "砸瓦鲁多".wait(); //将公共数据区中的消息发送给客户端 pw.print(ChatRoomServer.buf); pw.flush(); } } }catch (Exception e){ e.printStackTrace(); }finally { if (pw != null){ pw.close(); } if (this.socket != null){ try { this.socket.close(); } catch (IOException e) { e.printStackTrace(); } } } } } public class ChatRoomServer { //定义公共数据区 public static String buf; public static void main(String[] args) { System.out.println("Chat Server Version 1.0"); System.out.println("Listen at 8888......"); ServerSocket serverSocket = null; try{ serverSocket = new ServerSocket(8888); while(true){ Socket socket = serverSocket.accept(); System.out.println("连接到:"+socket.getInetAddress()); new ChatReceive(socket).start(); new ChatSend(socket).start(); } }catch (Exception e){ e.printStackTrace(); }finally { if (serverSocket != null){ try { serverSocket.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
>>>a='I\nLOVE\nU'
>>> a
'I\nLOVE\nU'
>>> print(a)
I
LOVE
U
>>> b='I\'m a teacher'
>>> b
"I'm a teacher"
老师,为什么在命令运行中,直接输入a,出来的是字符串,其中的换行符\n不表现,必须用print()
而输入b,其中的 \' 可以直接运行出来 '
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637