娃哈哈好喝-真的!
技术够用就行,吃好喝好睡好!

脚本编程 第2页

Python

  • 1
  • python遍历多维字典的2种方法

    wahaha
    阅读(207)赞(0)

    本次的应用场景是将json数据转换成字典,再将字典遍历打印出来,json数据保存在json.txt文件中: [root@nginx python]# cat json.txt {"eventType":"MessageCreated","p...

    Shell

  • 3
  • shell脚本实现交互功能

    wahaha
    阅读(121)赞(0)

    测试系统:centos7 实现交互功能要使用到这个工具:expect,如果系统没有这个命令可以使用yum安装 1、expect脚本示例:ssh连接其他服务器 #!/usr/bin/expect#设置超时时间,表示连接上目标机器后多久没响应会...

    Git

  • 4
  • git合并分支

    wahaha
    阅读(174)赞(0)

    现有分支dev和master,要将dev分支合并到master上去,操作如下: 1、首先切换到master分支上去 git checkout master 2、如果是多人开发的话需要把master上的代码pull下来 git pull or...

    Mac

  • 5
  • Macos mxsrvs集成环境安装php扩展zip

    wahaha
    阅读(153)赞(0)

    使用php扩展包安装工具pecl,但是有个问题是需要离线安装,先去php官网下载需要安装的扩展库 扩展库下载地址: https://pecl.php.net/ 先搜索,再下载,本次需要安装的是zip扩展,下载的包为zip-1.21.1.tg...

    Linux

  • 7
  • 安装指定版本php

    wahaha
    阅读(92)赞(0)

    更新yum源(2选一) epel源: [root@centos ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm R...

    Python

  • 9
  • centos下修改django默认端口及ip

    wahaha
    阅读(89)赞(0)

    环境介绍:centos7.6,python3.7,django2.1.2 只需要修改项目目录下的manage.py文件:加入如下代码 from django.core.management.commands.runserver import...

    Git

  • 10
  • 解决git上传大文件失败

    wahaha
    阅读(110)赞(0)

    会提示remote: error: GH001: Large files detected. You may want to try Git Large File Storage 在push时会出现类似这样的信息,github最大支持单个文...