摘要:
select是go语言中常用的一个关键字,其用法也一直被用作面试题来考核应聘者。今天,结合代码来分析下select的主要用法。 首先,我们来从官方文档看一下有关select的描述: A "select" statement chooses which of a set of possible sen 阅读全文
摘要:
python: In [1]: a = "AB" In [2]: id(a) Out[2]: 4564190912 In [3]: a = "CD" In [4]: id(a) Out[4]: 4567124992 # 不同的内存地址 golang: package main import "fmt 阅读全文
摘要:
flask 利用 celery 和 MQ的流程图如下: celery 集群架构图如下: Multiple machines are connected by message brokers like rabbitmq, Kafka and etc. All the worker machines m 阅读全文
摘要:
A type assertion is an operation applied to an interface value. Syntactically, it looks like x.(T), where x is an expression of an interface type and 阅读全文