码迷,mamicode.com
首页 >  
搜索关键字:filename    ( 7326个结果
Shell工具【cut/sed/awk/sort】
1. cut cut的工作就是“剪”,具体的说就是在文件中负责 剪贴数据 用的。 cut命令从文件的每一行剪贴字节、字符 和 字段,并将这些字节、字符和字段输出。 (1)基本用法 cut [选项参数] filename 说明:默认分隔符是制表符 2. sed 3. awk 4. sort ...
分类:系统相关   时间:2020-02-14 18:08:21    阅读次数:83
文件操作
# 文件操作:文件上传,保存log# 系统函数:open(file,mooe)# mode : r w rb wb r:read w:write b:binary 二进制 字节 r w:纯文本文件 rb,wb:文本,图片,音乐,影片,# 读操作:open(path/filename,'rt') >返 ...
分类:其他好文   时间:2020-02-14 13:00:10    阅读次数:66
Python爬虫连载7-cookie的保存与读取、SSL讲解
一、cookie的保存与读取 1.cookie的保存-FileCookie.Jar from urllib import request,parse from http import cookiejar #创建cookiejar实例 filename = "cookie.txt" cookie = ...
分类:编程语言   时间:2020-02-14 00:42:15    阅读次数:85
C语言常用函数
一、数学函数 调用数学函数时,要求在源文件中包下以下命令行: #include <math.h> 函数原型说明 功能 返回值 说明 int abs( int x) 求整数x的绝对值 计算结果 double fabs(double x) 求双精度实数x的绝对值 计算结果 double acos(dou ...
分类:编程语言   时间:2020-02-13 13:14:37    阅读次数:285
重新认识urllib
# coding=utf-8 # urllib_get_file=urllib.request.urlretrieve(url=None,filename="test.zip") # basic usage of urllib from urllib import request url = "ht ...
分类:Web程序   时间:2020-02-13 09:35:23    阅读次数:64
python获取命令行输入的参数
from optparse import OptionParseroptParser = OptionParser()optParser.add_option('-f', '--file', action='store', type='string', dest='filename')optPars ...
分类:编程语言   时间:2020-02-12 18:19:00    阅读次数:80
xlslib and libxls
一个非常完整的实例 void cratexlsfile(std::string filename,ustring name,ustring gender,ustring id,ustring Class,ustring PhoneNum) { XLS obj; auto sheet = obj.cr ...
分类:其他好文   时间:2020-02-12 16:26:14    阅读次数:81
PyQt5打印机
1、打印机操作(打印默认文本里面的内容)from PyQt5 import QtGui,QtWidgets,QtPrintSupportfrom PyQt5.QtWidgets import *import sysclass Printsupport1(QMainWindow): def __ini ...
分类:其他好文   时间:2020-02-12 11:19:55    阅读次数:220
redis web后台存取二进制文件
简要代码(aioredis): @post('/shop/store_file') async def store_file(request,*,file,fileName): ''' 直接进行二进制存储就行 ''' await redis.execute("HSET", 'admin_doc',f ...
分类:Web程序   时间:2020-02-11 10:04:07    阅读次数:128
数据分析(3) Pandas数据读取
通过Pandas提供的read_xxx相关的函数可以读取文件中的数据,并形成DataFrame,常用的数据读取方法为:read_csv( )和read_excel( ),主要可以读取文本类型的数据。 1 读取格式 pd.read_csv ( filepath, encoding, sep, head ...
分类:其他好文   时间:2020-02-11 00:48:26    阅读次数:90
7326条   上一页 1 ... 59 60 61 62 63 ... 733 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!