12.1 Dynamic memory and classes 12.1.1 A review example and static class members Now try implement a String class(a flawed one): // sayings1.cpp using ...
分类:
其他好文 时间:
2018-10-16 20:53:04
阅读次数:
157
题目描述 从键盘输入一行字符,长度小于1000。统计其中单词的个数,各单词以空格分隔,且空格数可以是多个。 从键盘输入一行字符,长度小于1000。统计其中单词的个数,各单词以空格分隔,且空格数可以是多个。 输入 输入只有一行句子。仅有空格和英文字母构成 输入只有一行句子。仅有空格和英文字母构成 输出 ...
分类:
其他好文 时间:
2018-10-05 21:04:50
阅读次数:
178
import redis import msgpack class rediscon(): def __init__(self,host,db = 0 ,pwd="",port=6379): self.conn = redis.Redis(host=host,db=db,password=pwd,p... ...
分类:
微信 时间:
2018-09-29 11:15:19
阅读次数:
330
1. 创建Sharding复制集 rs0 1.1 复制集rs0配置 # mongo localhost:27020 > rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27020'}, {_id: 1, host: 'loca ...
分类:
数据库 时间:
2018-09-24 19:30:47
阅读次数:
187
#!/usr/bin/env python# -*- coding:utf-8 -*-# 作者:Presley# 邮箱:1209989516@qq.com# 时间:2018-08-05# OOP学习1class Role(object): members = 0 ac = None def __in ...
分类:
编程语言 时间:
2018-09-22 14:49:49
阅读次数:
180
mongodb installation + mongodb org + mongodb org shell + mongodb org tools + mongodb org server config mongodb.conf to connect mongodb + comment bind ...
分类:
数据库 时间:
2018-09-19 22:02:05
阅读次数:
211
1.第一步登录获取token 通过oauth服务,进行登录。返回token 第二步 自定义oauth拦截器,这里设置了 第三步 实现 第四部 如何使用 ...
分类:
编程语言 时间:
2018-09-18 11:19:17
阅读次数:
487
As of TypeScript 2.4, it is now possible to define string enums, or more precisely, enums with string members. Just like any other numeric enum, strin ...
分类:
编程语言 时间:
2018-09-14 18:26:08
阅读次数:
178
一、type and members 1. inspect.getmembers(object[, predicate]) 第二个参数通常可以根据需要调用如下16个方法; 返回值为object的所有成员,以(name,value)对组成的列表 inspect.ismodule(object): 是否 ...
分类:
编程语言 时间:
2018-09-09 18:01:09
阅读次数:
240