首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏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 语法更新和访问的持久数据

    48720编辑于 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 这三个范式是逐步细化的,每一个范式都是在前一个范式的基础上建立的。 解释: 第二范式建立在第一范式的基础上,主要关注于主键与非主键列之间的依赖关系。 在第二范式中,一个表只能保存一种数据,不可以把多种数据保存在同一张数据表中。

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

    etcd 基础10

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

    34410编辑于 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]\

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

    Codis 基础10

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

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

    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

    30330编辑于 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

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

    Snort 基础10

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

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

    Consul 基础10

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

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

    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

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

    UnrealIRCd 基础10

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

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

    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

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

    Tengine基础10

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

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

    memcached基础10

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

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

    nginx基础10

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

    26610编辑于 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

    39110编辑于 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

    26321发布于 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

    31231发布于 2021-03-04
  • 来自专栏技术杂记

    Solr基础操作10

    多关键字匹配(且) + (%2B) 前缀代表必须包含 [root@h102 solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/s

    29210编辑于 2022-06-29
  • 来自专栏Golang开发

    Python基础(10)——属性

    子类没有实现__init__方法时,默认自动调用父类的。 如定义__init__方法时,需自己手动调用父类的 __init__方法

    43430发布于 2019-05-28
领券