09 2021 档案

摘要:try: (执行的代码) except: (发生异常时执行的代码) else: (未发生异常时执行的代码) finally: (无论是否发生异常都会执行的代码) raise(抛出异常) 阅读全文
posted @ 2021-09-22 15:12 干煸茄子 阅读(42) 评论(0) 推荐(0)
摘要:#!/bin/bash file_name=$'*.zip'dst_ip='192.168.2.59'user='ftpuser'passwd='123456'path='/var/ftp/test' if [ -f $file_name ]; then ftp -vn << EOFopen $ds 阅读全文
posted @ 2021-09-22 14:57 干煸茄子 阅读(292) 评论(0) 推荐(0)
摘要:Java安装步骤 1、手动下载java1.8linux版本,放到/opt路径下 2、解压:tar -zxvf /opt/jdk-8u144-linux-x64.tar.gz 3、配置环境变量:vim /etc/profile.d/java.sh 复制下边两行内容到java.sh文件中 export 阅读全文
posted @ 2021-09-22 14:38 干煸茄子 阅读(1277) 评论(0) 推荐(0)
摘要:nginx安装步骤: 1、 安装依赖包: apt-get install gcc apt-get install libpcre3 libpcre3-dev apt-get install zlib1g zlib1g-dev sudo apt-get install openssl sudo apt 阅读全文
posted @ 2021-09-22 14:36 干煸茄子 阅读(744) 评论(0) 推荐(0)
摘要:import reimport osimport timeimport randomimport requestsclass Zhihu_Photo(): def __init__(self): self.path = 'C:\desk\download' #存储图片的位置 self.questio 阅读全文
posted @ 2021-09-22 14:13 干煸茄子 阅读(126) 评论(0) 推荐(0)