老师你好,为什么整个Linux没有说如何在Linux中编程呀,我们正在学这个东西,感觉学校老师讲的不好,特地来百战看看,是不是用Xshell登录Linux虚拟机还得安装插件比如Vscode什么的才能编程
老师第二阶段的课件是在哪里下载呢?下载了好几个都 不是,或者能不能直接给我一下呢!多谢啦!
我曾经遇到过一个面试题,说java中是先有对象还是先有类,我回答肯定是先有类啊,我回答的对么??
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): a = 1 b = 0 c = a/b return 'Hello World!' if __name__ == '__main__': app.run(debug=True) # app.run()
老师我这个debug为啥一直是off
package cn.tz.String; import java.io.*; public class test04 { public static void main(String[] args) throws IOException { write(); read(); } public static void write() throws IOException { DataOutputStream dos=new DataOutputStream(new BufferedOutputStream(new FileOutputStream("D:\\8.txt"))); dos.writeBoolean(true); dos.writeChar('d'); dos.writeInt(1); dos.writeUTF("jshc"); dos.close(); } public static void read() throws IOException { DataInputStream dis =new DataInputStream(new BufferedInputStream(new FileInputStream("D:\\8.txt"))); dis.readBoolean(); dis.readChar(); dis.readInt(); dis.readUTF(); dis.close(); } }
为什么读取不到数据?
class XinchengRoomsSpider(scrapy.Spider): name = 'xincheng_rooms' allowed_domains = ['anjuke.com'] start_urls = ['https://xa.anjuke.com/sale/xinchengqu/p{}/'.format(num) for num in range(1,11)] def parse(self, response): #new_url = re.search('href="(https://xa.anjuke.com/prop/view/.+)?.+"',response.text).group(0) new_url = response.xpath('//a[@class="houseListTitle"]/@href').extract() for url in new_url: yield scrapy.Request(url,callback=self.parse_info)
老师我这个是安居客的 new_url用xpath_helper都可以找到 但是调试的时候返回的都是空
为何会出现这种情况老师,还有域名和ip一直映射不上,依旧是127.0.0.1
我启动以后木有报错,但是页面不出东西
http://localhost:8761/访问以后,页面是空白的
老师我最近在写毕设,我可以直接用vue和flask,不加服务器嘛,vue好像可以直接访问本地的url
请问老师,看了视频好久,对于这一阶段的内容,整体的逻辑关系还是没有理顺,老师可以以逻辑构架的方式解说一下吗
for 加 for是嵌套 for加while这样的也算吧
没有视频中显示的快捷键,怎么处理没有web.xml的问题呢,直接添加吗?
public class test { public static void main(String[] args) { print("teaching' or 1=1 -- ",4); } public static void print(String department_name,int location_id){ String sql = "select * from departments where department_name='"+department_name.trim()+"'"+" and location_id="+location_id; System.out.println(sql); } }
老师,如果在简单场景可以使用对字符串变量后缀加.trim()去除空格的方式来防止sql注入么
package cn.jscn.game; import java.io.*; public class test05 { public static void main(String[] args) throws IOException { FileInputStream fis =new FileInputStream("D:\\a.txt"); FileOutputStream fos =new FileOutputStream("D:\\a3.txt"); BufferedInputStream bis =new BufferedInputStream(fis); BufferedOutputStream bos =new BufferedOutputStream(fos); byte[]bs=new byte[1024]; int len=0; while((len=bis.read())!=-1){ bos.write(bs,0,len); } bis.close(); bos.close(); } }
运行后不报错,但是复制后的a3文件里面没有内容,这是为什么?
请问老师:使用ResultSet,是不是会频繁地去查询数据库,从而占用数据库服务器的内存?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637