文字设置 font-family:"微软雅黑" text-indent:2em;(文字缩进) font-weight: bold(粗体) normal (正常的字体) text-transform: uppercase; 大写 letter-spacing:15px; 文字间距 font-style ...
分类:
其他好文 时间:
2017-11-21 14:52:23
阅读次数:
165
任务和线程的启动很容易。在大多数情况下我们都会让他们运行直到结束,或是让他们自行停止。但是,有时我们希望提前结束任务或是线程,可能是因为用户请求取消,或是线程在规定时间内没有结束,或是出现了一些问题迫使线程要提前结束。 强制一个线程或是服务立即停止,可能会造成共享数据状态不一致的问题,比如,两个线程 ...
分类:
编程语言 时间:
2017-11-18 20:57:49
阅读次数:
244
消息中间件的使用场景 异构系统解耦(订单系统与库存系统解耦) 并行处理任务(用户上传图片后,需要执行1图片缩放,2通知朋友,3奖励积分) 异步处理任务(用户注册后,发送邮件通知) 缓解数据洪峰(流量削峰) 日志处理(kafka) 死信队列 超出重试次数后被放置到“死信队列”(Dead Letter ...
分类:
其他好文 时间:
2017-11-17 23:26:08
阅读次数:
252
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo... ...
分类:
其他好文 时间:
2017-11-16 23:51:56
阅读次数:
165
leetcode 40. Combination Sum II Medium descrition Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in ...
分类:
其他好文 时间:
2017-11-16 21:55:35
阅读次数:
138
遍历列表deftravel(string): index=0 whileindex<len(string): letter=string[index] printletter index=index+1a="12ww1wwwwww"printtravel(a)bogon:hhhhhzhouhaijun$pythonpy_02.py12ww1wwwwww
分类:
编程语言 时间:
2017-11-15 10:54:30
阅读次数:
221
leetCode原题: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a soluti ...
分类:
其他好文 时间:
2017-11-14 14:27:31
阅读次数:
146
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: 解 ...
分类:
其他好文 时间:
2017-11-13 21:21:56
阅读次数:
114
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2017-11-13 13:51:57
阅读次数:
126
前几篇文章我们介绍了Nginx的配置、OpenResty安装配置、基于Redis的动态路由以及Nginx的监控。 Nginx-OpenResty安装配置 Nginx配置详解 Nginx技术研究系列1-通过应用场景看Nginx的反向代理 Nginx技术研究系列2-基于Redis实现动态路由 [原创]N ...
分类:
其他好文 时间:
2017-11-12 20:54:47
阅读次数:
242