import re p = 'src=(.+?\.jpg")' s = r'\t\t\t\t\t\t\t\t\t\t\t<img src="https://img.bjsxt.com/uploadfile/2018/04/bj_city.jpg" />\n'
请问老师代码中的
p = 'src=(.+?\.jpg")' 里面的\.是代表匹配.这个符号吗 如果要匹配问号 该怎么写哈
后面的数学计算看不懂怎么办(数学不好)
如图,我有个疑惑,为何id(a)和id(3)的结果是一致的,而id(b)和id(3.0)却不同;id(3.0)与id(float(a))的结果又是一致的。这其中内存分配的情况具体是怎样的?
write函数往文件里追加写入数据时,会自动换行,如何让他不自动换行
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.bjsxt.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.bjsxt.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
javax.servlet.ServletException: Servlet[springmvc]的Servlet.init()引发异常
查阅很多没发现错误原因在那里
ssmdemo.zip
老师,根据视频敲代码。为什么这里却报错了?
老师,rgb的颜色范围是0~255,为什么这个可以实现呢? <!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> .d{ border:3px solid pink; width:400px; padding: 28px; border-radius: 25px; box-shadow: 20px 20px rgb(568,473,174); } </style> </head> <body> <div class="d"> <p>表格属性</p> </div> </body> </html>
老师这个shiro是什么时候走的controller层
咋完善 while turn才能解决窗口未响应问题
老师,结合之前电话本儿项目的验证功能做了一些调整, 能跑通 还请老师指点下代码设计上有没有啥毛病
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.net.UnknownHostException; import java.util.Scanner; class SendMsg extends Thread{ private Socket socket; public SendMsg(Socket socket){ this.socket=socket; } @Override public void run() { this.sendMsg(); } private void sendMsg(){ try(PrintWriter pw=new PrintWriter(this.socket.getOutputStream()); Scanner scanner=new Scanner(System.in)) { while(true){ String msgSengding=scanner.nextLine(); pw.println(msgSengding); pw.flush(); } } catch (Exception e) { e.printStackTrace(); }finally { if (socket!=null){ try { socket.close(); } catch (IOException e) { e.printStackTrace(); } } } } } class ReceiveMsg extends Thread{ private Socket socket; public ReceiveMsg(Socket socket){ this.socket=socket; } @Override public void run() { this.receiveMsg(); } private void receiveMsg(){ try (BufferedReader br=new BufferedReader(new InputStreamReader(this.socket.getInputStream()))){ String msgReceive=br.readLine(); System.out.println(msgReceive); } catch (IOException e) { e.printStackTrace(); }finally { if (socket!=null){ try { socket.close(); } catch (IOException e) { e.printStackTrace(); } } } } } class Regex { public Regex() { } public int orderValidate(){ String regex="[1-2]{1}"; Scanner scanner=new Scanner(System.in); while (true){ System.out.println("请输入启动类型(数字1或2)"); System.out.println("1.启动服务端\t2.启动客户端"); String order=scanner.nextLine(); if (order.matches(regex)){ if ("1".equals(order)){ System.out.println("准备启动服务端..."); }else{ System.out.println("准备启动客户端..."); } return Integer.parseInt(order); }else { System.out.println("输入有误,请重试"); System.out.println(); } } } } public class GoodTcp { public static void main(String[] args) { Regex regex=new Regex(); int order=regex.orderValidate(); if (order==1){ try(ServerSocket serverSocket=new ServerSocket(8888)) { System.out.println("服务端启动成功,正在监听端口8888"); Socket socket=serverSocket.accept(); System.out.println("已成功建立连接"); new SendMsg(socket).start(); new Receive(socket).start(); } catch (IOException e) { e.printStackTrace(); } }else{ try{ Socket socket=new Socket(InetAddress.getLocalHost().getHostAddress(),8888); System.out.println("已建立连接"); new SendMsg(socket).start(); new Receive(socket).start(); } catch (Exception e) { e.printStackTrace(); } } } }
没问题了。。。。。。。。。。。。。。。。
这个 Point p 是什么意思?
老师,图中,抱歉,是由橙色文字来定性的吗?还是有引号里面的绿色文字定性的?
引号之中的可以修改吗?
老师我没理解这个第二行的m什么意思,为啥我只写m就变成这样了
不好意思,我英文填错了,老师,我自己找到问题了
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637