1.例子 import csv def writeToCSV(fileName): outputFile = open(fileName,'w',newline='') outputWriter = csv.writer(outputFile) #outputWriter = csv.writer( ...
分类:
编程语言 时间:
2020-07-26 00:39:51
阅读次数:
75
看一下C++风格的串流控制,C++引入了ostringstream、istringstream、stringstream这三个类,要使用他们创建对象就必须包含sstream.h头文件。 istringstream类用于执行C++风格的串流的输入操作。 stringstream类同时可以支持C++风格 ...
分类:
其他好文 时间:
2020-07-26 00:37:50
阅读次数:
55
<?php // clearDir('upload/images/'); if ($_FILES['file']['error'] == 0) { $MAX_FILE_SIZE = 300000; if ($_FILES['file']['size'] > $MAX_FILE_SIZE) { exi ...
分类:
Web程序 时间:
2020-07-26 00:34:37
阅读次数:
73
1.主库 [oracle@xag1124a ~]$ sqlplus / as sysdba SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database; PROTECTION ...
分类:
数据库 时间:
2020-07-25 23:57:18
阅读次数:
177
Python基础Task3:异常处理 1.try-except语句 try: 检测范围 except Exception[as reason]: 出现异常后的处理代码 【例子】 try: f = open('test.txt') print(f.read()) f.close() except OS ...
分类:
编程语言 时间:
2020-07-25 11:37:26
阅读次数:
89
import jsonpath = r"H:\weibo\4\sdc-907869a8-212f-11e8-9a3e-ab0426199701_77a6516b-4816-40cf-beaf-cc5d31f07e41" #:文件位置file = open(path, 'r', encoding='u ...
分类:
Web程序 时间:
2020-07-25 10:00:46
阅读次数:
134
Pod对象基本概念 Pod,实际上是在扮演传统基础设施里“虚拟机”的角色;而容器,则是这个虚拟机里运行的用户程序。 Kubernetes 集群中的 Pod 可被用于以下两个主要用途: 运行单个容器的 Pod。"每个 Pod 一个容器"模型是最常见的 Kubernetes 用例;在这种情况下,可以将 ...
分类:
其他好文 时间:
2020-07-25 09:42:54
阅读次数:
71
1、容器中部署nginx服务centos:7镜像运行一个容器,并且,在这个容器内部署Nginx服务。[root@Docker~]#dockerpullcentos:7//下载镜像[root@Docker~]#dockerrun-itd--namewebapp--restart=alwayscentos:7//运行一个容器名为:webapp[root@Docker~]#dockercpnginx-1
分类:
其他好文 时间:
2020-07-24 23:48:44
阅读次数:
112
以上面的excel格式,输出字典类型: import xlrddef read_excel_data(): filename = 'E:\学历列表.xls' data = xlrd.open_workbook(filename) table = data.sheet_by_name('Sheet1' ...
分类:
编程语言 时间:
2020-07-24 21:25:57
阅读次数:
116
linux下ftp可以上传、下载文件 centos7环境: 1、安装ftp yum -y install ftp 2、连接ftp 方法一:ftp——open——输入ip——输入账号密码 [root@localhost ~]# ftpftp> open(to) 192.168.174.128 Name ...
分类:
系统相关 时间:
2020-07-24 21:18:02
阅读次数:
119