摘要: 今天在服务器上操作 想知道自己内网的服务器出去 ip是多少 需要在防火墙上加白名单 然后尝试百度了下 [nginx@sh-0000xxx game]$ curl cip.cc IP : 115.159.xx.xx 地址 : 中国 上海 运营商 : tencent.com 数据二 : 上海市 | 腾讯 阅读全文
posted @ 2021-04-29 10:11 小黑仔学It 阅读(300) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# @Time : 2021/1/25 22:01# @Author : Mr.Heiimport xlsxwriterworkbook=xlsxwriter.Workbook('chart.xlsx')worksheet=workbook.add_wo 阅读全文
posted @ 2021-01-27 21:24 小黑仔学It 阅读(93) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# @Time : 2020/11/22 17:45# @Author : Mr.Heiimport requestsimport bs4from bs4 import BeautifulSoupimport urllib.requestimport r 阅读全文
posted @ 2020-11-27 18:25 小黑仔学It 阅读(149) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# @Time : 2020/8/12 19:44# @Author : Mr.Heifrom phone import Phonedef mobile(mobile): info = Phone().find(mobile) print(info) t 阅读全文
posted @ 2020-08-12 20:20 小黑仔学It 阅读(361) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding:utf-8 -*-# coding=utf-8import paramikoimport osimport timedatenow = time.strftime("%Y%m%d")def DownLoadFile(sftp, LocalF 阅读全文
posted @ 2020-06-10 22:35 小黑仔学It 阅读(470) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-# @File : BaiduAPI.py# @Author: whf# @Date : 2020/3/10import urllib.request, urllib.parse, urllib.errorimp 阅读全文
posted @ 2020-04-20 11:37 小黑仔学It 阅读(915) 评论(0) 推荐(0) 编辑
摘要: 最近有需求是,需要把对方提供的ftp地址上的图片获取到本地服务器,原先计划想着是用shell 操作,因为shell 本身也支持ftp的命令 在通过for 循环也能达到需求。但是后来想着 还是拿python 操作;于是在网上进行百度;无一例外 还是那么失望 无法直接抄来就用。于是在一个代码上进行修改。 阅读全文
posted @ 2020-03-25 19:52 小黑仔学It 阅读(2632) 评论(0) 推荐(0) 编辑
摘要: 前言:按照人事的想法,能不能帮助他们定时发送员工生日祝福邮件。 正好学到python ,打算练下手 直接附上代码 个人想法:第一步数据库建立一张员工信息表;用于记录员工的名字,生日,邮箱。对于表没有专门考虑长度,直接用。 CREATE TABLE `birth` ( `id` varchar(255 阅读全文
posted @ 2019-03-27 16:03 小黑仔学It 阅读(1385) 评论(0) 推荐(0) 编辑