First reader and writers problem (读者优先) no reader be kept waiting unless a writer has obtain permission to write semaphore rw=1, readcnt_m=1; int read ...
分类:
其他好文 时间:
2021-04-26 13:39:39
阅读次数:
0
Mongdb mongdb入门 mongdb安装 linux下安装mangdb wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.2.10.tgz 下载完成后解压 tar zxvf mongodb-linux-x8 ...
分类:
数据库 时间:
2021-04-24 11:58:27
阅读次数:
0
一、字符串的表示和存储 字符串是字符的序列,每个字符都有有一个数字作为标识,同时会有一个将标识转换为存储字节的编码方案; s = 'hello world python' for c in s: print(c, end=' ') h e l l o w o r l d p y t h o n AC ...
分类:
编程语言 时间:
2021-04-23 12:20:35
阅读次数:
0
说明: break语句:终止并跳出循环体。continue语句:终止当前循环,重新开始一个新的循环。goto语句:跳转到指定位置 。 一,continue语句 class Program { static void Main(string[] args) { for(int i = 1; i <= ...
关系型数据库系统(RDBMS):是指使用了关系模型的数据库系统(MySQL、Oracle、DB2、SQL Server) NoSQL数据库:指的是数据分类存放,但是数据之间没有 关联关系的数据库系统(Redis、MongoDB、Neo4J、MemCache) MySQL数据库(使用Navicat工具 ...
分类:
数据库 时间:
2021-04-22 16:13:48
阅读次数:
0
一、解决SpringBoot MongoDB插入文档默认生成_class字段问题 @Configuration public class SpringMongoConfig{ @Bean public MongoTemplate mongoTemplate() throws Exception { ...
分类:
数据库 时间:
2021-04-22 16:06:57
阅读次数:
0
Django版本2.2 Python版本3.7 第一步:在settings文件中配置多数据库 DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, ...
分类:
数据库 时间:
2021-04-22 15:41:22
阅读次数:
0
Python 打包成 exe 之后,是否能从二进制文件中恢复出源代码?没有加密的话是可以的。 首先需要解包。 直接从 github 上下载就行:https://github.com/countercept/python-exe-unpacker 使用也简单:python pyinstxtractor ...
分类:
编程语言 时间:
2021-04-21 12:39:04
阅读次数:
0
Python 简介 Python 入门教程 Python 编写代码语法 Python 注释作用写法及示例代码 Python 变量 Python 数据类型 Python 字符串(String)的使用 Python Number(数字)数值数据类型 Python 数据类型转换(Casting) Pyth ...
分类:
编程语言 时间:
2021-04-21 12:31:32
阅读次数:
0
document.write插入标签会覆盖页面的问题 document.write插入js标签会覆盖页面又两种情况: 通过onclick() 点击事件触发执行document.write(),会使document.write()覆盖原来的页面。 在window.onload里面执行document. ...
分类:
其他好文 时间:
2021-04-21 11:53:09
阅读次数:
0