老师,每次打开对话框都有一瞬间显示的是上次回显的数据,初步理解为异步问题,但加上async好像也没什么用,请问是我这错了还是说并不是异步问题呢
代码如下:
multiprocessing ProcessQueue time sleep MyProcess(Process): (namemq): Process.() .name = name .mq = mq (): (.name) (.mq.get()) sleep() (.name) __name__ == : mq = Queue() mq.put() mq.put() mq.put() p_list=[] i (): p = MyProcess(imq) p_list.append(p) p p_list: p.start()
老师你好,我想问一下视频中注册成功“name=lb”的时候,为什么数据库里的 id 显示的是3而不是2
老师你好,下面这段话我有点不明白,希望老师详细讲一下:
重写 Thread 类的 run 方法和实现 Runnable 接口的 run 方法还有一个很重要的不同:那就是 Thread 类的 run 方法是不能够共享的,也就是说 A 线程不能把 B 线程的 run 方法 当作自己的执行单元,而使用 Runnable 接口则很容易就能实现这一点,使用同一个Runnable 的实例构造不同的 Thread 实例。
挂载是用来干什么的呀
老师,这个等级为什么输入不出来?nam已经定义了?
老师视频说视图函数只能返回字符串、元组和Response对象,为啥我直接return 一个字典可以正常返回JSON呢,没有像视频里讲的报错
重新装了一遍虚拟机,结果设置Ip地址为静态还是这样,Xshell里连接不到
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>米课</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="images/favicon.ico"> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet" href="css/iconfont.css"> <style> /* 导航开始 */ .nav { width: 100%; height: 66px; background-color: #88c5e1; border-bottom: 5px solid #54abd4; position: fixed; top: 0; left: 0; z-index: 999; } .wrap { width: 87%; margin: 0 auto; } .login, .search, .nav-bar { height: 66px; float: left; } .text-input { width:100%; height: 40px; border: 1px solid #f5f5f5; box-sizing: border-box; padding-left: 10px; background-color:#f5f5f5; outline :none; /* 点击input时 没有边框 */ border-radius: 2px; margin-top: 13px; transition: all .2s; } .text-input:hover { background-color: #fff; border-color: #54abd4; } .search button { width:40px; height: 34px; background-color:#f5f5f5; color:#54abd4; font-weight: 900; position: absolute; right: 2px; top: 16px; } .nav-bar>ul { float: right; } .nav-bar li { float: left; } .nav_bar a { color: #fff; padding: 10px; display: block; margin-left: 8px; margin-top: 12.5px; } .nav-bar-active { border-bottom: 2px solid #fff; } .nav-bar a:hover { border-bottom: 2px solid #fff; } /* phone start */ @media screen and (max-width: 768px) { .login { width: 16%; background: url("images/Brand-S.png") no-repeat left center; /* 或者只写left */ background-size: 38px; } .search { width: 68%; position: relative; } .nav-bar { display: none; } .btn { float: right; width: 43px; height: 43px; border: 1px solid#fff; color:#fff; line-height: 43px; font-weight: 700; font-size: 20px; margin-top: 10.5px; } } /* phone end */ /* ipad start */ @media screen and (min-width: 768px) and (max-width: 992px) { .login { width: 18%; background: url("images/Brand-M.png") no-repeat left; /* 或者只写left */ background-size: 86px; } .search { width: 42%; position: relative; } .nav-bar { width: 40%; } .btn { display: none; } } /* ipad end */ /* pc start */ @media screen and (min-width: 992px) { .login { width: 25%; background: url("images/Brand.png") no-repeat left center; /* 或者只写left */ background-size: 183px; } .search { width: 40%; position: relative; } .nav-bar { width: 35%; } .btn { display: none; } } /* pc end */ /* 导航结束 */ /* 登录开始 */ .login { width: 100%; height: 460px; background-image: url("images/homeImg.png"); background-repeat: no-repeat; background-size: 100% 100%; margin-top: 71px; padding-top: 75px; box-sizing: border-box; } .login-logo, .form { float: left; } .login-logo { width: 70%; } .form { width: 30%; } /* 登录结束 */ </style> </head> <body> <!-- 导航开始 --> <div class="nav"> <div class="wrap"> <div class="login"></div> <div class="search"> <form action=""> <input class="text-input" type="text" placeholder="查找课程"> <button class="iconfont"></button> </form> </div> <div class="nav-bar"> <ul> <li><a class="nav-bar-active" href="#">首页</a></li> <li><a href="#">课程</a></li> <li><a href="#">公告</a></li> <li><a href="#">登录</a></li> </ul> </div> <div class="btn"> <i class="iconfont"></i> </div> </div> </div> <!-- 导航结束 --> <!-- 登录开始 --> <div class="login"> <div class="wrap"> <div class="login-logo"> <img src="images/MiLogo.png" alt=""> <br> <img src="images/miTitle.png" alt=""> </div> <div class="form"></div> </div> </div> <!-- 登录结束 --> </body> </html>
老师 您给我看看 哪错了 怎么结果是这样的
老师这个问题我查了好久没有进展,可否帮忙看一下
mybatiswebdemo.zip
老师,请问图中的变量recv_data[0]前面的3和1各占两个字节,不应该是从第5位开始才是图片的数据吗?即[5:];还是说在这里遵循不包头包尾呀?
我感觉要用all啊 因为少于子查询中最大的 但是并没有少于子查询中除最大之外其他的薪水 不满足题意啊
用idea 网页啥也不显示咋回事啊老师,然后自带的那个软件也用不了,然后idea这个点那个谷歌的小图标也点不了,显示没有路径
老师,这里面的map.entrySet()方法返回的Set<Map.Entry<String,String>>,这个Entry是Map的内部接口,里面的getKey和getValue方法都是抽象方法,没有具体实现类,那怎么能直接调用?
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>练习项目</title> <style type="text/css"> *{ width: 300px; height: 300px; border: 1px solid #D2691E; } #div2{ color: cadetblue; background-color: chocolate; } </style> </head> <body> <div> </div> <div id="div2"> hello </div> <div> </div> </body> </html>
老师,为什么我在通用选择器里面加上边框以后第一个div上出现重叠的框
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637