ICode9

精准搜索请尝试: 精确搜索
  • 【Python程序设计】实验7:文件操作2021-11-19 19:34:39

    文章目录 实验目的:实验内容: 实验目的: 理解并掌握文件操作和目录操作的相关方法,以及二进制文件的序列化和反序列化方法。能够熟练应用os模块和os.path模块进行文件和目录操作。 实验内容: 使用pickle模块将包含学生成绩的字典保存为二进制文件,然后再读取内容并显示。 Cons

  • PyCharm设置远程解释器后无法工作2021-11-14 10:06:13

    网上有很多教程 这里就不赘述了 先设置deployment,在设置python interpreter后, 点OK没反应时: 确认mapping的文件夹是否有写入权限。 如果没有, sudo chmod 777 -R /target_folder

  • centos docker 安装 Jenkins 报错: No such plugin: cloudbees-folder!!!排查2021-11-14 02:32:10

    ###  我在mac上面使用docker安装Jenkins是没有问题的, 但是我到我本地的虚拟机,centos,安装就有问题,排查了2个小时才找到原因   先说网上的, 1,这是因为缺少 cloudbees-folder 插件,我们下载即可:cloudbees-folder下载地址 下载后得到 cloudbees-folder.hpi 文件,接下来我们只需将它

  • Effective Python(2)- 遵循 PEP 8 风格指南2021-11-13 20:01:48

    什么是 PEP8 风格 Python Enhancement Proposal #8 叫作 PEP 8 它是一份针对 Python 代码格式而编订的风格指南 尽管只要语法正确,代码随便怎么写都行,但采用一致的风格可以使代码更易读、更易懂 官方:https://www.python.org/dev/peps/pep-0008/ 中文翻译博客:https://www.cnblogs.

  • antd vue 树控件自动自定义展开收起图标(非数据渲染)2021-11-09 22:02:38

    <a-tree show-icon :icon="getIcon" :tree-data="treeData" > </a-tree> getIcon (props) { const { expanded } = props if (!props.children) { return <a-icon class="file" type="file-text" />

  • 教程@Hexo博客设置上传本地图片2021-11-09 20:03:25

    适用于hexo5.x.x版本 安装插件 npm install hexo-asset-image-for-hexo5 --save 开启post_asset_folder 在hexo根目录下的_config.yml中 设置post_asset_folder: true 这样在使用hexo new xxx.md的时候就会自动在当前文件夹下生成存放图片的文件夹,以下图为例: 插入本地图片 在博

  • git submodule 的使用2021-10-28 21:04:07

    当我们要把另一个仓库的代码作为子目录放到当前仓库时,为了防止代码冗余,我们应该使用 git 的子模块 submodule 功能。 引入 把 https://github.com/my/repo.git 引入当前项目,创建一个folder 文件夹来存放代码。 git submodule add https://github.com/my/repo.git folder 此时仓库

  • TFS中的Solution Folder 和 物理磁盘 Folder的区别和含义2021-10-28 10:04:45

    1。解决方案文件夹【Solution Folder】 这类文件夹只是逻辑上的分组,实际在磁盘不会创建; 2。新建文件夹【New Folder】    如果通过这样的方式创建文件夹,是在磁盘上【物理】创建的,也就是你可以在你的磁盘里找到你创建的这个文件夹。 并且,这个文件夹自动就是受源代码控制的。 2.1

  • shell脚本模块化实现echo、mkdir、cp命令2021-10-25 16:31:44

    函数实现 echo命令模块化: #红色log显示 function fail_info() { echo -e "\033[31m $1 \033[0m" exit 1 } #绿色log显示 function success_info() { echo -e "\033[32m $1 \033[0m" } #黄色log显示 function debug_info() { echo -e "\033[33m $1

  • create shortcut and autorun program in Windows2021-10-21 12:01:24

         For Current User: startup folder shell:startup             Registry                 For Local Machine: startup folder shell:common startup     Registry           Create shortcut: cmd                  

  • transformer代码笔记----pre_process.py2021-10-19 20:02:56

    import os import pickle from tqdm import tqdm from config import wav_folder, transcript_file, pickle_file from utils import ensure_folder def get_data(split): print('getting {} data...'.format(split)) #对获取的数据名打印 global VOCAB #定义全局

  • Dynamics AX2009 Report servie extension2021-10-13 14:01:41

    “You must install SQL Server 2005 Reporting Services Service Pack 2 before installing the reporting extensions.” This error usually occurs when you have MS SQL Server 2008 installed. How to fix this error: 1. Firstly, verify that the machine you are tryin

  • Glob 语法2021-10-10 17:04:02

    Glob 通常用来匹配 file, gitignore, Tailwind CSS purge 都有用到 参考: Online Test Tool 语法解释 常用到的  ./PdfTemplate/**/!(Index).cshtml 双 ** 就是不管多少层 folder ! 是取反 上面这个匹配的就是 starts with ./PdfTemplate/ 然后不过里面多少层 folder 里面的,

  • [LeetCode] 1233. Remove Sub-Folders from the Filesystem 删除子文件夹2021-10-06 12:02:54

    Given a list of folders folder, return the folders after removing all sub-folders in those folders. You may return the answer in any order. If a folder[i] is located within another folder[j], it is called a sub-folder of it. The format of a path is

  • vscode debug problem solution2021-10-04 17:02:19

    problem: unable to generate assets to build and debug Added omnisharp.json file to the root folder with below content:  { "msbuild": { "useBundledOnly": true } } Select the Command Palette using Ctrl + Shift + P and select the optio

  • flask点滴2021-09-25 09:01:45

    rom flask import Flask,render_template app = Flask(__name__,template_folder='templates',static_folder='static',static_url_path='/static'·) @app.route('/index') def index(): return render_template('index.h

  • Volvo 88890300 Vocom Interface Installation instructions2021-09-24 12:37:16

    This is installation instructions for Volvo 88890300 1.Unzip the files PTT-v1.12.260 Open the folder after unzipping Select setup to start the installation. When the installation is complete, select NO. 2.Unzip the files of VTT1.12-KG Open the vtt1.

  • 2021-09-232021-09-23 21:01:33

    HBH 定制jpg转pdf import glob import fitz # 导入本模块需安装pymupdf库 import os # 将文件夹中指定jpg图片转换为指定名称的pdf文件,并保存至指定文件夹 def pic2pdf_2(img_path, pdf_path, img_list, pdf_name): doc = fitz.open() pic_list = [img_path+i fo

  • 在递归中使用迭代器2021-09-19 20:31:11

    今天下午想要复现一下学长的recursion file,想模仿源码里的精髓:迭代器 遇到了bug,花了一两个小时才解决。现总结如下: 首先,想要实现的功能是递归遍历文件夹,遇到满足条件的文件时,用yield返回该文件的位置。 如果不用递归器,可以这样实现: path_list = [] def get_one_cage(root: st

  • 批量对测试视频文件进行处理2021-09-13 18:30:58

    批量处理文件: 将 *.MP4 放入其对应的文件夹内 python执行: folder_list = sorted([i.split('.')[0] for i in os.listdir('./')]) # file_list = sorted([i for i in os.listdir('./') if os.path.isfile(i)]) # print(folder_list) # for i in folder_list: #

  • Postman测接口2021-09-13 14:04:19

    一: PostMan结构: 1: 便于管理,先创建Collection=》然后创建folder =》 然后folder下创建request。 Collection可以对应理解为项目。 Folder可以理解为一个模块,一个项目可能有肯多模块,多以,collection下可以有多个folder。 request可以理解为该模块下的各个接口。比如报价单系统,可能会

  • GoLang设计模式05 - 原型模式2021-09-11 22:01:17

    原型模式也是一种创建型模式,它可以帮助我们优雅地创建对象的拷贝。在这种设计模式里面,将克隆某个对象的职责交给了要被克隆的这个对象。被克隆的对象需要提供一个clone()方法。通过这个方法可以返回该对象的拷贝。 原型模式的使用场景: 创建新对象的操作比较耗资源(如数据库操作)或

  • EasyUI入门2021-09-11 14:01:41

    一、UI框架   easyui=jquery+tml4(用来做后台的管理界面)——2016版本,不要钱 bootstrap=jQuery+HTML5——2016-2018,要钱,api文档不全 layui——2018-2019,不要钱,有bug,文档不全 二、简介 why:快速开发 what:html4+jQuery的快速开发的前端框架 where:后端开发管理界面 常用控件:layout

  • How to run a batch file each time the computer loads Windows2021-09-11 11:03:06

    https://www.computerhope.com/issues/ch000322.htm#:~:text=Press Start%2C type Run%2C and press Enter. In,folder. Create a shortcut to the batch file. Run a batch file at loading of Windows 8 and 10 Create a shortcut to the batch file. How to create a Windo

  • 修改右键菜单新建选项2021-09-07 22:34:09

    我的右键菜单原来是: .accdb .docx .library-ms .lnk .md .mdb .pptx .psd .pub .rtf .txt .xlsx .zip Folder 现在改为: .docx .pptx .xlsx .md .txt .library-ms Folder 修改过程见博客: https://blog.csdn.net/qq_42168187/article/details/103338376

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

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

ICode9版权所有