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
# Python learning# coding:utf-8# 1.读相关操作# f.readline() 读一行# with open(r"a.txt", mode="rt", encoding="utf-8") as f: # res1 = f.readline() # res2 = f.re ...
分类:
编程语言 时间:
2021-06-25 17:14:08
阅读次数:
0
# 指针移动的单位都是以bytes/字节为单位# 只有一种情况特殊:# t模式下的read(n),n代表的是字符个数# with open("a.txt", mode="rt", encoding="utf-8") as f:# res = f.read(4)# print(res)# f.seek ...
分类:
编程语言 时间:
2021-06-25 17:13:05
阅读次数:
0
windows10系统mysql5.7 安装 下载mysql-5.7.34-winx64 https://dev.mysql.com/downloads/file/?id=502363 解压mysql-5.7.34-winx64.zip 进入解压文件,创建my.ini文件 my.ini文件编写 [m ...
分类:
数据库 时间:
2021-06-25 17:12:30
阅读次数:
0
1.假定之前已经绑定域名且部署好网站了 ,在网站根目录下 新建 .htaccess 具体步骤如下: 比如说你先在已经搭建了一个A网站www.a.com ,想再搭建一个B网站www.b.com 那么需要先在A网站的根目录下,新建一个文件夹,比如名字叫做B_file 然后再A网站的根目录下,新建一个.h ...
分类:
Web程序 时间:
2021-06-25 17:02:34
阅读次数:
0