ICode9

精准搜索请尝试: 精确搜索
  • 引入element-plus报错Module not found: Error: Can't resolve 'process/browser'2022-06-25 11:31:25

    报错信息:      解决方案: module: { rules: [ ... { test: /\.mjs$/, resolve: { fullySpecified: false }, include: /node_modules/, type: "javascript/auto" } ] },  

  • vue 按照路由分模块打包及压缩2022-06-24 15:02:52

    根据路由分模块打包并生成压缩包 项目需求为在一个项目中需要分为多个模块,作为不同的插件嵌入别的 APP 1.将路由划分为不同的模块 2.使用cross-env插件进行配置(package.json) 3.使用filemanager-webpack-plugin 插件压缩打包好的dist包 结果如下 代码如下 index.js import Vue fr

  • Firefox is already running(linux) 解决方法2022-06-22 20:03:18

    英文版显示:Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”解决方法如下:在linux的终端输入:firefox -profilemanager回车后会出现一个小窗口让你选择使用哪个 profile

  • How to kill server when seeing “EADDRINUSE: address already in use”2022-06-22 02:32:07

    How to kill server when seeing “EADDRINUSE: address already in use”   https://stackoverflow.com/questions/4075287/node-express-eaddrinuse-address-already-in-use-kill-server https://levelup.gitconnected.com/how-to-kill-server-when-seeing-eaddrinuse-addres

  • restfulAPI2022-06-22 01:31:26

    API Application Programming Interface: a piece of software that can be used by another piece of software, in order to allow application to talk to each other. such as Web API "Application" can be other things: Node.js' fs or http APIs Br

  • scrapy多个爬虫并行运行2022-06-20 19:33:05

    有的时候需要在scrapy工程里面运行多个爬虫,试用了网上两种方法。 运行环境:scrapy:2.3.0 + python3.8 第一种: # coding:utf-8 from scrapy import cmdline cmdline.execute("scrapy crawl spider1".split()) cmdline.execute("scrapy crawl spider2".split()) 无效,只能运行第一个

  • scrapy框架中的pipelines没有成功调用process_item方法2022-06-19 17:34:26

    提示报错 原因: items没有接收到Spider的返回值,导致pipelines没有接收到items模块的返回值,检查Spider模块是否正确返回值,我这里的原因是,数据解析完成后没有yield item,导致pipelines不能执行数据处理操作 加上后就正常操作数据库了

  • C#调用外部程序2022-06-19 15:02:08

    1、C#调用外部程序 在C#中,通过Process类来进行进程操作。 Process类在System.Diagnostics包中,具体使用如下所示: Process.Start(processName) 对于比较复杂的调用,例如给被调用程序传入参数,以及从被调用程序获取数据,此时需要设定Process的StartInfo参数,具体设定如下所示:  static

  • LC.80 删除有序数组中的重复项 II 做题笔记2022-06-18 18:35:08

    注: 本文是做题笔记,并不是原创题解,用于整理自己的思路,文中参考的代码都会标注出处** 题目 LC.80 参考题解 宫水三叶的题解 思路 本题思路和LC.26的通用解法完全一致,如果掌握了LC.26的通解,本题就能秒杀。 class Solution { public int removeDuplicates(int[] nums) {

  • 运行代码后出现Process finished with exit code 02022-06-12 11:33:04

    pycharm_运行不出结果,也不报错_Process finished with exit code 0用pycharm运行程序的时候,运行不出结果 ,也不报错,且正常退出解决1:将 run → edit configurations → run with python console 勾掉解决2:注意空格注意空格!!!我的情况是程序中一个小循环的空格缩进不对记录一下————

  • MySQL:show process2022-06-09 16:36:32

    show processlist 显示用户正在运行的线程,需要注意的是,除了 root 用户能看到所有正在运行的线程外,其他用户都只能看到自己正在运行的线程,看不到其它用户正在运行的线程。除非单独个这个用户赋予了PROCESS 权限。 show processlist 显示的信息都是来自MySQL系统库 information_sch

  • Nohup 远程服务器必备神器2022-06-02 18:31:27

    Nohup 远程服务器必备神器 参考: https://blog.csdn.net/huavhuahua/article/details/121145512 1、后台执行程序 以程序名 process.py 为例,将结果输出到 process.log nohup python process.py > process.log 2>&1 & 2、查看程序运行状态 ps -ef |grep python

  • 2022-62022-06-02 15:05:34

    一. 网址参考   1. shell的exec命令   二. 摘抄   1. exec与source的区别是什么呢     1)exec命令在执⾏时会把当前的shell process关闭,然后换到后⾯的命令继续执⾏。”No new process is created.”     2)source命令是在当前进程中执⾏参数⽂件中的各个命令,⽽不是

  • django操作cookie django操作session CBV添加装饰器 django中间件 csrf跨站请求伪造2022-05-29 03:33:14

    day 60   作业讲解 作业需求:   用户登录之后跳转到用户登陆之前想要访问的页面 提示:   利用url问号携带参数    # 装饰器 def login_auth(func_name): def inner(request, *args, **kwargs): # print(request.path) # 获取路径 # print(request.path_

  • 【C#】调用cmd.exe并获取结果2022-05-27 20:34:49

      using (Process process = new Process()) { string inputScriptPath = officeBits == "32bit" ? $@"cd c:\Program Files (x86)\Microsoft Office\{officeVer}\" : $@"cd c:\Program Files\Microsoft Office\{o

  • 英语单词--备忘2022-05-26 16:32:47

    P post-mortem 有点"事后回顾","事后总结","事故总结记录"的意思 直译就是"验尸"的意思 下面摘自What is a post-mortem?A post-mortem is where a team reflects on what went wrong with something they did, and documents it and/or amends their process to st

  • 多进程log2022-05-25 09:03:37

    import logging import logging.handlers import multiprocessing import multiprocessing.pool from random import choice, random import time class ProcessLogger(multiprocessing.Process): _global_process_logger = None def __init__(self): sup

  • cookie和中间件2022-05-25 01:01:22

    目录cookie和中间件作业讲解django操作cookiedjango操作sessionCBV添加装饰器django中间件简介必要点csrf跨站请求伪造数据csrf解决策略 cookie和中间件 作业讲解 def login_auth(func_name): def inner(request, *args, **kwargs): # print(request.path) #

  • session+CBV装饰器+中间件+csrf2022-05-25 00:35:22

    目录django操作session设置获取补充CBV添加装饰器直接在类中的某个方法上添加直接在类名上添加并指定重写dispatch方法并添加装饰器(作用于类中所有的方法)中间件自定义中间件掌握的方法了解的方法csrf(跨站请求伪造)解决策略form表单ajax请求 django操作session 服务端保存用户相

  • django(9)2022-05-25 00:01:46

    django操作cookie补充 set_singned_cookie(key,value,salt='加密盐')set_singned_cookie(Key,value,max_age=超时时间:默认是秒数)expires:专门针对IE浏览器设置超时时间  HttpResponse对象.delete_cookie(key)ps:学到这里要对登录操作有本质的认识:核心就是cookie的存取 django操

  • Django中间件和csrf2022-05-24 23:33:47

    目录django中间件django中间件简介五个可以自定义的方法django中间件的使用场景自定义中间件自定义中间件的步骤自定义中间件的常用方法需要了解的方法csrfcsrf简介csrf解决策略 django中间件 django中间件简介 django中间件是django的门户,django自带七个中间件,每个都有各自对应的

  • Django微讲解(十)2022-05-24 23:02:58

    Django微讲解(十) Django操作cookie # 1.加盐处理 set_signed_cookie(key,value,salt=加密盐) # 加密盐只能是字符串 # 2.超时时间 set_signed_cookie(key,value,max_age=超时时间) # 超时时间默认是秒数 expires:专门针对IE浏览器设置超时时间 # 3.主动清除cookie HttpR

  • cookie session 中间件2022-05-24 23:02:16

    目录作业讲解django操作cookie补充django操作sessiondjango操作session补充CBV添加装饰器django中间件自定义中间件csrf跨站请求伪造csrf解决策略 作业讲解 def login_auth(func_name): def inner(request, *args, **kwargs): # print(request.path) # print(

  • 2022.5.24 django操作cookie和session,django中间件,asrf跨站请求伪造2022-05-24 19:32:09

    2022.5.24 django操作cookie和session,django中间件,asrf跨站请求伪造 django操作cookie补充 django操作session CBV添加装饰器的三种方式 django中间件简介 django中间件五个常见方法 csrf跨站请求伪造 一、django操作cookie补充 # signed_cookie set_signed_cookie(key,value,sa

  • 4.19python笔记2022-05-19 01:34:53

    进程相关操作、方法、概念 进程创建 ​ 在python中提供了一个multiprocessing模块可以帮助我们使用多进程解决问题。在multiprocessing 模块中有一个类Process。 #第一种方法(函数对象作为进程): from multiprocessing import Process import time def task(name): print('%s

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有