老师,接口不是不能实例化吗?为什么这里就可以实例化?
老师,有没有cenos7.6的ios镜像
为什么这一节声音有点杂呢?
AspectJ是通过动态代理实现的吗
<html> <head> <meta charset='utf-8' /> <title>这是我的第一个cp</title> </head> <body> This is my cp. </body> </html>
老师为什么我这个代码没有反应?
为什么此处我跑 ittext02这个程序的时候,会跳出来,ittext01中的错误,应该如何设置?
''' 闭包的特殊功能: 1.可以在不修改现有源码的前提下,增加新的功能 日志功能(统计访问时间,访问功能写道日志文件中),权限验证(下载之前,验证当前用户是否为会员) 开闭原则: 开放:开放功能 关闭:修改源码 ''' import time #定义一个记录日志的函数:将访问时间以及访问的函数名写入到文件中(log.txt) def writelog(func): try: file = open('log.txt','a',encoding='utf-8') #写入相关数据信息(访问的函数名,访问的时间) file.write(func.__name__) file.write("\t")#制表符 #写入访问时间 file.write(time.asctime()) file.write("\n")#换行符 except Exception as e: print(e.args) finally: #关闭文件 file.close() #闭包 def funcout(func): def funcin(): #新增功能 writelog(func) func() return funcin def func1(): print("我是功能1") def func2(): print("我是功能2") #闭包的调用 func1 = funcout(func1) func2 = funcout(func2) func1() func2()
老师,我想请问一下原来的def func1()这个函数它怎么就是下面的func1 = funcout(func1)这两个func1为啥是同一个呢?下面这个不是上面闭包函数里面的参数嘛?
老师,我安装Nginx,出现这个页面,怎么处理
老师,咱们压缩包里的虚拟机我没安上,我自己安了一个虚拟机20.04版本,可以吗,还是卸掉安装咱们的版本
老师为什么我加的浮动不好使,但是去除风格那个是有效果的,测试了好几遍,也切换了浏览器
一、报错截图
二、压缩文件
mybatisdemo.zip
1、这个地方为什么要这样打印?直接打印不好吗? 2、上面为什么不加入spring容器里呢?
老师问一下pycharm在保存后文件存放在哪里我找不到
里面的&g和&dis是什么意思 作用是什么
public class Welcome{ public static void main(String[] args){ System.out .println("Hello Woeld); } }
屏幕截图 2022-11-21 204523.png
老师,我这个也不行,我看了其他同学的问题有一样的,我试过那个path放到最下边也不行。
elc-box中最后一个盒子中 浏览更多 设置宽高不生效 字体图标大小也不生效(字体图标不显示这个问题也有疑问)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>小米广告部分</title> <link rel="icon" href="../images/favicon.ico"> <link rel="stylesheet" href="../css/reset.css"> <link rel="stylesheet" href="小米.css"> </head> <body> <div class="content"> <div class="wrap"> <!-- 家电部分 --> <div class="elc"> <div class="elc-nav"> <a href="#"> <img src="../images/41d16e66381cfeda7b6b39ab67678d5e.jpg" alt=""> </a> </div> <h2 class="title">家电 <a href="#"> <span>热门</span> <span>电视影音</span> </a> </h2> <div class="elc-box"> <div class="items-2"> <a href="#"> <img src="../images/116fc43816b87192be4e67cf762e8da5.jpeg" alt=""> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/03a9e7e96a09d256ca1badeec186c859.jpg" alt="" class="img1"> <h3 class="name2">小米全面屏电视65英寸 E65X </h3> <p class="desc2">全面屏设计</p> <p class="price2">2999元<del class="original">3299元</del></p> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/20d36fbaa18625e4fe507af31e4e9f83.jpg" alt="" class="img1"> <h3 class="name2">全面屏电视E43K </h3> <p class="desc2">全面屏设计,海量内容</p> <p class="price2">1349元<del class="original">1500元</del></p> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/9d8674cd21c486feff5328772ab9cf01.jpg" alt="" class="img1"> <h3 class="name2">小小米电视4A 70英寸 </h3> <p class="desc2">大屏更享受</p> <p class="price2">3599元<del class="original">3900元</del></p> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/6bed167fc905bab57dee478bcf1e5e0d.JPG" alt="" class="img1"> <h3 class="name2">米家互联网对开门冰箱 540L </h3> <p class="desc2">重磅新品福利特惠</p> <p class="price2">2999元<del class="original">3600元</del></p> </a> </div> <div class="items-2"> <a href="#"> <img src="../images/dfbdabe36b2d630d57a015e6fb5eb3ea.jpg" alt=""> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/b8c63a2024528fe5410ebe669b7d2407.jpg" alt="" class="img1"> <h3 class="name2">Redmi全自动波轮洗衣机1A 8kg</h3> <p class="desc2">一键操作,父母都爱用</p> <p class="price2">849元<del class="original">899元</del></p> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/74e573c4c0d89048392d14831cc507d5.jpg" alt="" class="img1"> <h3 class="name2">Air 13.3" 2019款 </h3> <p class="desc2">新一代独立显卡</p> <p class="price2">6299元</p> </a> </div> <div class="items-1"> <a href="#"> <img src="../images/7e5f89adf98ab3fccb34012b5209cd58.jpg" alt="" class="img1"> <h3 class="name2">米家互联网烟灶套装(天然气)</h3> <p class="desc2">点火排烟,风随火动</p> <p class="price2">2298元</p> </a> </div> <div class="items-last"> <div> <a href="#"> <img src="../images/1612c93ad4756215774a0dbec7a81bb2.jpg" alt=""> <h3 class="name2">米家电烤箱 </h3> <p class="price2">279元</p> </a> </div> <div> <a href="#"> <div class="more">浏览更多 <small>电视影音</small> </div> <i class="icontfont"></i> </a> </div> </div> </div> </div> </div> </div>
.elc-nav{ width:100%; height:120px; margin:22px 0; } .title{ color:#333; font-size:22px; font-weight:200; line-height:58px; text-align:left; } .title>a{ color:#424242; font-size:12px; line-height:58px; float:right; } .title>a:hover{ color:#ff6700; } .elc-box{ width:100%; height:614px; } .items-1{ width:234px; height:260px; background-color:#fff; margin:0 0 14px 14px; padding:20px 0; text-align:center; float:left; transition:all .2s linear; } .img1{ width:160px; height:160px; margin-bottom:18px; } .name2{ width: 214px; height: 21px; color: #333; font-size: 14px; line-height: 21px; margin: 0 auto 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .desc2{ width: 214px; height: 18px; color: #b0b0b0; font-size: 12px; line-height: 18px; margin: 0 auto 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .price2{ color: #ff6700; font-size: 14px; } .title span{ margin-left:30px; transition:border .3s; } /* 鼠标悬停在家电标题右侧部分的span元素上,橘色的下边框显示 */ .title span:hover{ border-bottom:2px solid #ff6700; } .items-2{ width:234px; height:300px; background-color:#fff; margin-left:0; padding:0; float:left; } .items-last{ width:234px; height:300px; margin-left:14px; float:left; position:relative; } .items-last>div{ width:234px; height:143px; background-color:#fff; padding-top:50px; box-sizing:border-box; } .items-last>div:first-child{ margin-bottom: 14px; } .items-last>div:last-child>.more{ width:94px; height:45px; font-size:18px; color:#333; margin:0 110px 0 30px; float:left; } .more>small{ display:block; color:#757575; font-size:12px; } .items-last>div:last-child>i{ /* 转化为块级元素设置宽高 */ display:block; color:#ff6700; font-size:48px; line-height:48px; float:left; } .items-2 img{ width:100%; height:100%; } .price2>del{ color: #b0b0b0; margin-left:0.5em; } .items-last img{ width:80px; height:80px; position:absolute; top:32px; right:20px; } .items-last h3{ position:absolute; top:50px; left:-40px; } .items-last p{ position:absolute; top:76px; left:40px; } /* 鼠标悬停在家电部分主体小盒子上,均有三个方向上的盒阴影 */ .items-1:hover,.items-2:hover,.items-last>div:hover{ box-shadow:0 15px 30px rgba(0,0,0,.1); transform:translate(0,-2px); }
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637