码迷,mamicode.com
首页 >  
搜索关键字:python 数字    ( 191668个结果
python 监测window任务管理器某一进程状态,并邮件提醒
import os import time import smtplib from email.mime.text import MIMEText from email.header import Header sender = '2575125xxx@qq.com' receivers = ['1 ...
分类:编程语言   时间:2021-06-02 11:42:46    阅读次数:0
c语言中统计字符串中数字字符出现的次数
c语言中统计字符串中数字字符出现的次数。 1、 #include <stdio.h> void int_count(char x[], int cnt[]) { int i; while(x[i]) { if(x[i] >= '0' && x[i] <= '9') { cnt[x[i] - '0'] ...
分类:编程语言   时间:2021-06-02 11:38:03    阅读次数:0
pip安装之权限问题
1、如果python安装在C盘的话,那么在通过pip安装模块时需要以管理员形式打开命令窗口去执行pip 安装命令 操作方法:按win+X 键,选择windows powershell (管理员A)菜单并打开(打开是蓝色窗口),然后在命令窗口输入pip install xx或者pip install ...
分类:其他好文   时间:2021-06-02 11:37:07    阅读次数:0
Linux Shell经典面试题
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:系统相关   时间:2021-06-02 11:35:11    阅读次数:0
python多线程-文件读取
如果要获取数据并分析,例如用for循环,那只能按顺序读取,这样就会造成效率低下: 循环读取多文件过慢,使用多线程或多进程方法,这里使用多线程(需要注意修改数据问题,可以使用锁) 由于处理完文件往往需要获取返回值,可以使用以下两种方法: import queue q = queue.Queue() d ...
分类:编程语言   时间:2021-06-02 11:25:47    阅读次数:0
mysql容器定时备份数据
#!/usr/bin/env python # encoding: utf-8 import datetime import os import shutil import subprocess import time import zipfile # 数据库用户名 db_user = "root" ...
分类:数据库   时间:2021-06-02 11:05:03    阅读次数:0
Leetcode 93. 复原 IP 地址 dfs
地址 https://leetcode-cn.com/problems/restore-ip-addresses/ 给定一个只包含数字的字符串,用以表示一个 IP 地址,返回所有可能从 s 获得的 有效 IP 地址 。 你可以按任何顺序返回答案。 有效 IP 地址 正好由四个整数 (每个整数位于 0 ...
分类:其他好文   时间:2021-06-02 11:04:18    阅读次数:0
⑤.shell 循环while
语法示例: while 条件为真 do echo ok done #!/bin/bash while true do echo ok done while循环数字 #!/bin/bash a=1 b=9 while [ $a -lt 10 ] do sum=$((a + b)) echo $a + ...
分类:系统相关   时间:2021-06-02 11:02:44    阅读次数:0
Python 练习2
题目: 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于40万元的部分,可提成3%;60万到 ...
分类:编程语言   时间:2021-06-02 10:59:36    阅读次数:0
Python 字符串的匹配与替换
本文主要解析了 Python 中 re 模块的使用,进行字符串的匹配。分析了模块中各函数的功能作用与区别。 ...
分类:编程语言   时间:2021-06-02 10:59:15    阅读次数:0
191668条   上一页 1 ... 66 67 68 69 70 ... 19167 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!