上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页
摘要: 1.集合初始化方式 第一层是内名内部类,第二次是初始化代码块 阅读全文
posted @ 2018-09-03 13:11 fight139 阅读(103) 评论(0) 推荐(0)
摘要: 1.安装jdk 下载jdk: 解压:tar -zxvf filename -C /usr/local/jdk8/ 配置环境变量: vim /etc/profile添加如下内容:JAVA_HOME根据实际目录来JAVA_HOME=/usr/java/jdk1.8.0_60CLASSPATH=$JAVA 阅读全文
posted @ 2018-09-02 19:43 fight139 阅读(109) 评论(0) 推荐(0)
摘要: 1. ERC20标准 https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md pragma solidity ^0.4.4; //定义接口 contract ERC20Interface{ string public name; str 阅读全文
posted @ 2018-08-16 14:06 fight139 阅读(714) 评论(0) 推荐(0)
摘要: 1.Bool类型 取值:true/false 运算符:! && || == != 2.Integer整型 uint8-uint256 int8-int256 uint == uint256 int == int256 运算符:< <= == 位运算:& | ^(异或) ~(位取反) 算数运算:+,- 阅读全文
posted @ 2018-08-13 09:22 fight139 阅读(641) 评论(0) 推荐(0)
摘要: 1. 属性【状态变量】的访问权限 public internal【合约属性默认的权限】 private 说明:属性默认访问全向为internal,internal和private类型的属性,外部是访问不到的。 当属性为public时,会自动生成一个和属性同名并且返回值为当前属性的get方法。 例如: 阅读全文
posted @ 2018-08-11 21:27 fight139 阅读(462) 评论(0) 推荐(0)
摘要: IDE:Atom 插件:autocomplete-solidity 代码自动补齐 linter-solium,linter-solidity代码检查错误 language-ethereum支持solidity代码高亮 1. 合约文件结构 版本号 : import 合约 :contract pragm 阅读全文
posted @ 2018-07-31 16:01 fight139 阅读(518) 评论(0) 推荐(0)
摘要: 1.SHHClient 用于连接远程服务器并执行基本命令 基于用户名密码连接:[windows | linux] 或者: 基于公钥密钥连接: RSA非对称加密验证算法 public key【公钥】 private key 【私钥】 把公钥给要连接的一方,自己拿着私钥去连接 生成一对公钥、私钥:ssh 阅读全文
posted @ 2018-07-28 16:10 fight139 阅读(282) 评论(0) 推荐(0)
摘要: 111 阅读全文
posted @ 2018-07-28 11:05 fight139 阅读(114) 评论(0) 推荐(0)
摘要: python的多线程不适合CPU密集型的任务,适合IO【文件读写,网络数据】密集型的任务 1.多进程 获取进程ID: os.getppid() --父进程 os.getpid() 当前进程的id 进程间通信 利用中间件queue.Queue,可以实现线程间通信: q = queue.Queue() 阅读全文
posted @ 2018-07-27 13:13 fight139 阅读(136) 评论(0) 推荐(0)
摘要: 1.创建表 import datetime from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Inte 阅读全文
posted @ 2018-07-24 17:47 fight139 阅读(274) 评论(0) 推荐(0)
摘要: centos操作系统 uWSGI是一个web服务器,Nginx进行反向代理的其实跟这些服务器可以说没有任何关系,你提供动态内容的服务器可以是apache/nginx/tomcat,当然也可以是uWSGI,他们之间的代理关系其实都是通过tcp/ip协议进行通信的。当然uWSGI相对于其它服务器来说有其 阅读全文
posted @ 2018-07-24 17:05 fight139 阅读(365) 评论(0) 推荐(0)
摘要: 1.列表生成式 In [3]: arr = [i*10 for i in range(10)] In [4]: arrOut[4]: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90] 2.生成器 对于arr = [0, 10, 20, 30, 40, 50, 60, 7 阅读全文
posted @ 2018-07-22 10:43 fight139 阅读(105) 评论(0) 推荐(0)
摘要: cd /usr/local/src/ wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm rpm -ivh mysql57-community-release-el7-8.noarch.rpm yum -y in 阅读全文
posted @ 2018-07-20 13:03 fight139 阅读(157) 评论(0) 推荐(0)
摘要: 安装python3之前的准备工作: 当前环境是centos操作系统【已经安装了gcc++】,在安装前需要安装zlib-devel包: yum install zlib-devel yum install openssl yum install openssl-devel 1.准备安装位置,将pyth 阅读全文
posted @ 2018-07-20 09:34 fight139 阅读(1010) 评论(2) 推荐(1)
摘要: 1.threading 查看当前线程 开启新的线程 2.锁 细粒度锁:主动加的锁 粗粒度锁:解释器加的锁 GIL 3.webserver flask内置的web服务器是单进程、单线程的,不能同时处理多个请求,flask内置的web服务器可以用来调试,测试。 可以对flask自带的服务器开启多线程模式 阅读全文
posted @ 2018-07-19 11:57 fight139 阅读(168) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页