https://www.cnblogs.com/emanlee/p/14336685.html 如果文件名,路径名称,字符串中含有中文汉字,文件头加上这个: #!/usr/bin/python#-*- coding:cp936 -*- 例如: #!/usr/bin/python #-*- codin ...
分类:
编程语言 时间:
2021-06-28 17:35:34
阅读次数:
0
新建MybatisPlusConfig 配置文件 package com.luna.demo.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.extension.pl ...
分类:
其他好文 时间:
2021-06-25 17:27:00
阅读次数:
0
1.去官网下载安装包http://www.oracle.com/technetwork/topics/winx64soft-089540.html 2.1instantclient-basic-windows.x64-19.11.0.0.0.zip 2.2instantclient-sqlplus- ...
分类:
数据库 时间:
2021-06-25 17:25:38
阅读次数:
0
在工作中遇到一个需求,需要使用 NPOI导出一个Excel文件,需求很简单,调用一个已经编辑好的.xlsx文件,然后往对应的单元格中填入数据,然后保存成一个新的.xlsx文件即可。但是实际操作中遇到一下几个问题。 问题一:导出的数据原本是Number格式的,但是到了Excel中,成为了以文本格式保存 ...
分类:
其他好文 时间:
2021-06-25 17:24:37
阅读次数:
0
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt ...
分类:
其他好文 时间:
2021-06-25 17:21:57
阅读次数:
0
# 方式一:文本编辑器的方式# with open('a.txt', mode='rt', encoding='utf-8') as f1:# res = f1.read()# data = res.replace('a1', 'b1')## with open('a.txt', mode='wt' ...
分类:
编程语言 时间:
2021-06-25 17:21:16
阅读次数:
0
一、简介 基于matlab GUI抽签 二、源代码 function varargout = example(varargin) % EXAMPLE M-file for example.fig % EXAMPLE, by itself, creates a new EXAMPLE or raise ...
分类:
其他好文 时间:
2021-06-25 17:17:35
阅读次数:
0
""" 控制文件读写内容的模式 t 文本 1.读写都是以str(unicode)为单位 2.文本文件 3.必须指定encoding='utf-8'"""# 没有指定encoding参数操作系统会使用自己默认的编码# with open('a.txt', mode='rt') as f1: # t模式 ...
分类:
编程语言 时间:
2021-06-25 17:15:48
阅读次数:
0
# 以t模式为基准操作# 1.r:只读模式:文件不存在时报错,文件存在时指针跳到开始位置# input_username = input("username:")# input_password = input("password:")## with open('a.txt', mode='rt', ...
分类:
编程语言 时间:
2021-06-25 17:15:33
阅读次数:
0
# Python learning# coding:utf-8"""t: 1.读写都是以字符串(unicode)为单位 2.只能针对文件 3.必须指定字符编码,即必须指定encoding参数b:binary模式 1.读写都是以bytes为单位 2.可以针对所有文件 3.一定不能指定字符编码,即不能指 ...
分类:
编程语言 时间:
2021-06-25 17:14:26
阅读次数:
0