今天来学习redis的基础数据类型,redis中一共有五种数据类型,分别是:string,hash,list,set,zset。下面分别进行介绍。 一、string(字符串) 字符串类型是redis最基础的数据类型,它能存储任何形式的字符串,包括二进制数据。一个字符串类型允许存储的数据最大容量是51 ...
分类:
其他好文 时间:
2017-09-24 21:01:02
阅读次数:
741
#include #include #include #define N 100005 using namespace std; int n,m,q,u,v,t; struct node { int l,flag; friend bool operatorQ; int Main() { scanf(... ...
分类:
其他好文 时间:
2017-09-23 00:10:00
阅读次数:
132
实例: 下载一首英文的歌词或文章,将所有,.?!等替换为空格,将所有大写转换为小写,统计某几个单词出现的次数,分隔出一个一个的单词。 列表实例:由字符串创建一个作业评分列表,做增删改查询统计遍历操作。例如,查询第一个3分的下标,统计1分的同学有多少个,3分的同学有多少个等。 简要描述列表与元组的异同 ...
分类:
其他好文 时间:
2017-09-22 13:14:15
阅读次数:
168
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time ...
分类:
其他好文 时间:
2017-09-22 12:07:53
阅读次数:
197
Codeforces Round #198 (Div. 2) 昨天看到奋斗群的群赛,好奇的去做了一下, 大概花了3个小时Ak,我大概可以退役了吧 那下面来稍微总结一下 A. The Wall Iahub and his friend Floyd have started painting a wal ...
分类:
其他好文 时间:
2017-09-21 13:17:41
阅读次数:
246
1.实例: 下载一首英文的歌词或文章,将所有,.?!等替换为空格,将所有大写转换为小写,统计某几个单词出现的次数,分隔出一个一个的单词。 bad='''your butt is mine I Gonna tell you right Just show your face In broad dayl ...
分类:
其他好文 时间:
2017-09-20 23:12:07
阅读次数:
153
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5122 Problem Description Matt’s friend K.Bro is an ACMer.Yesterday, K.Bro learnt an algorithm: Bubble ...
分类:
其他好文 时间:
2017-09-15 23:44:00
阅读次数:
256
二维询问转化成一维询问的问题,话说CF上面的好题还真多。 Description 给定一个半径为r的半圆,圆心为坐标原点O,直径为AB,半圆弧位于x轴上方。给定n次操作,每次为以下3种操作之一: ①1 x y — 在(x,y)处放置一颗卫星,如果该卫星是第 i 个被放到平面上的卫星,则它的编号为i; ...
分类:
其他好文 时间:
2017-09-15 18:44:25
阅读次数:
220
// js对象和json 的区别 var friend ={ firstname:'zhang', lastname:'cl', address:null, // address:'', // address:undefined, }; // var str = '{"na... ...
分类:
Web程序 时间:
2017-09-12 23:13:48
阅读次数:
247
此文仅做备份之用,原文地址:http://blog.csdn.net/u013628152/article/details/43229155 一:表名定义规范:(1)数据库表的命名以是名词的复数形式且都为小写,如cities, categories, friends等等 这一条不是硬性规定,可以看个 ...
分类:
数据库 时间:
2017-09-12 16:14:32
阅读次数:
315