首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Python基础、进阶与实战

    Python基础-10 标准简介

    10 标准简介 10.1 操作系统接口 os os 模块提供了许多与操作系统交互的函数: os.getcwd() 返回当前目录 os.chdir() 改变当前工作目录 os.system() 在shell parser.add_argument('filenames', nargs='+') parser.add_argument('-l', '--lines', type=int, default=10 import random >>> random.choice(['apple', 'pear', 'banana']) 'apple' >>> random.sample(range(100), 10 csv 模块支持以逗号分隔值格式直接读取和写入文件,这种格式通常为数据和电子表格所支持。XML 处理由 xml.etree.ElementTree , xml.dom 和 xml.sax 包支持。 • sqlite3 模块是 SQLite 数据的包装器,提供了一个可以使用稍微非标准的 SQL 语法更新和访问的持久数据

    49520编辑于 2022-12-06
  • 来自专栏CSDNToQQCode

    MySQL数据基础练习系列10、访客登记系统

    MySQL数据基础练习系列目标 很多学生或者说是初学者在学习完成数据基础增删改查后就自认为在数据这里就很熟悉了,但是不接触项目根本部知道需求,我这里准备了50个项目的基本需求来让大家来熟练各类项目的列信息 -25', '09:00:00', '咨询业务'), (2, 2, '2023-10-26', '10:30:00', '提交资料'), (3, 3, '2023-10-27', '14:15:00', '面试'), (4, 4, '2023-10-28', '11:00:00', '参观公司'), (5, 5, '2023-10-29', '08:45:00', '商务洽谈'); INSERT INTO 这三个范式是逐步细化的,每一个范式都是在前一个范式的基础上建立的。 解释: 第二范式建立在第一范式的基础上,主要关注于主键与非主键列之间的依赖关系。 在第二范式中,一个表只能保存一种数据,不可以把多种数据保存在同一张数据表中。

    32610编辑于 2024-06-07
  • 来自专栏技术杂记

    etcd 基础10

    先进行比较,然后根据比较结果来决定是否进行后面的操作,可以用于构建分布式锁机制(协调服务)

    35210编辑于 2022-01-20
  • 来自专栏技术杂记

    Logstash 基础10

    发现这边的终端有输出 [root@h102 etc]# /opt/logstash/bin/logstash -f logstash-syslog.conf Settings: Default filter workers: 1 Logstash startup completed { "message" => "Dec 23 12:11:43 louis postfix/smtpd[31499]: connect from unknown[95.75.93.154]\

    31520编辑于 2022-02-10
  • 来自专栏技术杂记

    Snort 基础10

    解决办法:安装 libdnet.x86_64 和 libdnet-devel.x86_64

    69720编辑于 2022-05-03
  • 来自专栏技术杂记

    SQLite 基础10

    删除表 sqlite> .tables company department hello t2 test ui sqlite> drop table t2; sqlite> .tables company department hello test ui sqlite> 插入数据 sqlite> .schema test CREATE TABLE test ( id int primar

    31230编辑于 2021-12-01
  • 来自专栏技术杂记

    Docker 基础10

    删除数据 [root@h103 ~]# ll /var/lib/docker total 16 drwx------ 3 root root 77 Jan 19 17:37 containers drwx------ 5 root root 50 Jan 19 17:37 devicemapper drwx------ 5 root root 4096 Jan 19 17:37 graph -rw-r--r-- 1 root root 5120 Jan 19 17:37 linkgraph.db

    34020编辑于 2022-02-09
  • 来自专栏技术杂记

    Codis 基础10

    root@h102 codis]# [root@h102 codis]# bin/codis-config server add 1 localhost:6380 slave 2015/12/04 21:10

    31820编辑于 2022-03-22
  • 来自专栏技术杂记

    UnrealIRCd 基础10

    这里只是最基本的,使其可以运行并且能够访问的配置,详细的配置方法,放到以后再作讲解

    31210编辑于 2021-11-29
  • 来自专栏技术杂记

    RabbitMQ基础10

    重置node [root@h102 rabbitmq]# rabbitmqctl reset Resetting node rabbit@h102 ... [root@h102 rabbitmq]# 让节点恢复到初始状态(原文是返回处女状态 ) This command resets the RabbitMQ node . Return a RabbitMQ node to its virgin state 必须先停掉RabbitMQ应用,才能成功执行,否则会报错 [root@h102 rabbitm

    35930编辑于 2022-05-04
  • 来自专栏技术杂记

    fio基础10

    bs_is_seq_randIfthisoptionisset,fiowillusethenormalread,writeblocksizesettingsassequential,randominstead.AnyrandomreadorwritewillusetheWRITEblocksizesettings,andanysequentialreadorwritewillusetheREADblocksizesetting.zero_buffersIfthisoptionisgiven,fiowillinittheIObufferstoallzeroes.Thedefaultistofillthemwithrandomdata.refill_buffersIfthisoptionisgiven,fiowillrefilltheIObuffersoneverysubmit.Thedefaultistoonlyfillitatinittimeandreusethatdata.Onlymakessenseifzero_buffersisn't specified, naturally. If data verification is enabled, refill_buffers is also automatically enabled. scramble_buffers=bool If refill_buffers is too costly and the target is using data deduplication, then setting this option will slightly modify the IO buffer contents to defeat normal de-dupe attempts. This is not enough to defeat more clever block compression attempts, but it will stop naive dedupe of blocks. Default: true. buffer_compress_percentage=int If this is set, then fio will attempt to provide IO buffer content (on WRITEs) that compress to the specified level. Fio does this by providing a mix of random data and a fixed pattern. The fixed pattern is either zeroes, or the pattern specified by buffer_pattern. If the pattern option is used, it might skew the compression ratio slightly. Note that this is per block size unit, for file/disk wide compression level that matches this setting, you'llalsowanttosetrefill_buffers.buffer_compress_chunk=intSeebuffer_compress_percentage.Thissettingallowsfiotomanagehowbigtherangesofrandomdataandzeroeddatais.Withoutthisset,fiowillprovidebuffer_compress_percentageofblocksizerandomdata,followedbytheremainingzeroed.Withthissettosomechunksizesmallerthantheblocksize,fiocanalternaterandomandzeroeddatathroughouttheIObuffer.buffer_pattern=strIfset,fiowillfilltheiobufferswiththispattern.Ifnotset,thecontentsofiobuffersisdefinedbytheotheroptionsrelatedtobuffercontents.Thesettingcanbeanypatternofbytes,andcanbeprefixedwith0xforhexvalues.Itmayalsobeastring,wherethestringmustthenbewrappedwit

    65440编辑于 2022-04-24
  • 来自专栏技术杂记

    Consul 基础10

    服务是可以使用 HTTP API 进行动态修改 (HTTP API 可以用来进行动态的添加,删除,修改服务)

    29220编辑于 2021-12-01
  • 来自专栏技术杂记

    memcached基础10

    通过stats items 和 stats cachedump slab_id limit_num配合get命令可以遍历memcached的记录。

    26410编辑于 2022-06-26
  • 来自专栏技术杂记

    Tengine基础10

    创建 apps/status.passwd 文件,创建方法(用户设为test,密码设为tengine)

    42740编辑于 2022-05-03
  • 来自专栏技术杂记

    nginx基础10

    Note: 本地要打开防火墙 -A INPUT -p tcp -m state –state NEW -m tcp –dport 80 -j ACCEPThttp://soft.dog/2015/10

    27010编辑于 2022-05-12
  • 来自专栏技术杂记

    HAproxy 基础10

    进行访问 过程中会弹出对话框,输入帐号密码后,就可以看到监控界面 ---- 命令汇总 md5sum haproxy-1.6.3.tar.gz tar -xzvf haproxy-1.6.3.tar.gz make TARGET=linux2628 ARCH=x86_64 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/haproxy ll /usr/local/haproxy/ tree /usr/local/haproxy/ /usr

    40210编辑于 2022-01-19
  • 来自专栏编程基础

    C编程基础-基础10

    typedef #include <stdio.h> #include <string.h> typedef struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } Book; int main() { Book book; strcpy(book.title, "C 教程"); printf( "书标题 : %s\n", book.tit

    27721发布于 2021-02-26
  • 来自专栏编程基础

    Go编程基础-基础10

    package main import "fmt" func main() { var a []int fmt.Println("初始化前:", a) a = make([]int, 5, 10 , 2, 3, 4, 5} a = append(a, 6) fmt.Println(a) a = append(a, 7, 8) fmt.Println(a) b := []int{9, 10 fmt.Println(a) } [1 2 3 4 5 6] [1 2 3 4 5 6 7 8] [1 2 3 4 5 6 7 8 9 10] 切片的长度和容量 在切片中可以使用len()获取切片中元素的数量 cap(a)) a = append(a, 7, 8) fmt.Printf("a的地址%p,a的长度%d,a的容量%d\n", a, len(a), cap(a)) b := []int{9, 10 a的地址0xc0000ba000,a的长度8,a的容量10 a的地址0xc0000bc000,a的长度11,a的容量20

    31631发布于 2021-03-04
  • 来自专栏Python爱好者

    Java基础笔记10

    成员内部类被静态修饰后的访问方式是: 外部类名.内部类名 对象名 = new 外部类名.内部类名(); 10.11_面向对象(成员内部类的面试题) A:面试题 要求:使用已知的变量,在控制台输出30,20,10 class Outer { public int num = 10; class Inner { public int num = 20;

    68570发布于 2018-06-21
  • 来自专栏瓜大三哥

    matlab GUI基础10

    MATLAB与Word/EXCEL混合使用 matlab软件通过notebook可以和word软件进行数据的交换。matlab中的notebook允许用户在word中编写程序,然后送到matlab软件中执行,最后将结果返回到word软件中。 1.notebook的安装 matlab的notebook制作的M-book文档不仅拥有word的全部文字处理功能,而且具备matlab无与伦比的矩阵计算和数据可视化功能。 notebook -setup 2.Excel Link Excel Link是Excel软件和

    66380发布于 2018-02-26
领券