加载中
python3:csv的读写

1、csv的写 python自带了csv模块提供用户对csv文件进行读写操作,要对csv文件进行写操作,首先要创建一个writer对象,参考help(csv.writer),情况如下 调用writer对象的前提是:需要传入一个文...

09/25 22:51
4
Python中eval与ast.literal_eval区别

Python中,如果要将字符串型的list,tuple,dict转变成原有的类型呢? 这个时候你自然会想到eval. eval函数在Python中做数据类型的转换还是很有用的。它的作用就是把数据还原成它本身或者是能够...

08/17 13:54
8
Python学习笔记 --struct模板

about 这篇文章是Python2 的官方文档 7.3. struct — Interpret strings as packed binary data的一个学习笔记 官方文档简介: This module performs conversions between Python values and...

08/16 07:53
11
Python使用struct处理二进制

有的时候需要用python处理二进制数据,比如,存取文件,socket操作时.这时候,可以使用python的struct模块来完成.可以用 struct来处理c语言中的结构体. struct模块中最重要的三个函数是pack(...

08/16 07:52
4
Stellar private network setup and wallet app tutorial

Stellar - the blockchain network based on a federated consensus protocol - is cool but it comes with a lot of complexities. However, as far as I researched, I found it’s not a...

Nginx ---- Installing Prebuilt Ubuntu Packages

NGINX provides packages for the following Ubuntu operating systems: Version Codename Supported Platforms 12.04 precise x86_64, i386 14.04 trusty x86_64, i386, aarch64/arm64 16.0...

2018/04/10 11:09
19
Nginx 的 TCP 负载均衡介绍

Nginx Plus的商业授权版开始具有TCP负载均衡的功能。从Nginx 1.7.7版本开始加入的,现在变成了一个商业收费版本,想要试用,需要在官网申请。也就是说,Nginx除了以前常用的HTTP负载均衡外,...

2018/04/08 20:18
26
TCP load balance with SSL termination

Nginx can act as L3/4 balancer with stream module: https://www.nginx.com/resources/admin-guide/tcp-load-balancing/ Because SSL still tcp - Nginx can proxy SSL traffic without te...

2018/04/08 20:15
9
BTS、Steem、EOS 背后的石墨烯技术

前言 目前区块链生态系统主要分为三类,一类是比特币生态系,一类是以太坊生态系,而另外一种就是石墨烯生态系。 比特币生态包括 BTC 以及其数量众多的分叉币,BTC 是加密数字货币的开山鼻祖...

2018/03/29 09:55
360
eval and ~

#!/bin/bash echo -n "Enter Directory Path:" read dir1 cd $dir1 But When executed, it gives error No such file or directory as follows: $ ./script Enter Directory Path:~/Desktop ...

2018/01/05 19:02
21
如何调试BASH脚本

Bash 是Linux操作系统的默认Shell脚本。Shell是用来处理操作系统和用户交互的一个程序。Shell的脚本可以帮助用户自动化地和操作系统进行交互。你也可以理解为一种脚本式的编程。即然有编程,...

2018/01/05 18:58
16
Bash Shell: Check File Exists or Not

How do I test existence of a text file in bash running under Unix like operating systems? You need to use the test command to check file types and compare values. The same comma...

2018/01/05 18:40
21
bitcoin.conf example

NAME bitcoin.conf - bitcoin configuration file SYNOPSIS All command-line options (except for '-datadir' and '-conf') may be specified in a configuration file, and all...

2017/12/07 12:05
62
Zero-Knowledge Proof of Balance: A Friendly ZKP Demo

Here at Stratumn Research we are currently applying various cryptographic primitives to allow participants finer control over their confidential information, even when it is sha...

2017/11/09 09:59
14
众目睽睽下隐身,zk-SNARK黑科技如何保护区块链隐私

今天我们来谈谈区块链中的隐私保护问题。 区块链的隐私性挑战 有朋友会说:什么鬼?你们不是在第一节课中说过了区块链中每个人的地址都是不实名绑定的么?而且比特币不也经常被用于黑市交易么...

2017/11/08 19:27
482
零知识证明与zkSNARK

  最近以太坊启动了“大都会”硬分叉,很重要的一个功能就是整合了ZCash的零知识证明技术zkSNARK。我们一起来看一下zkSNARK这个拗口的技术到底是什么鬼。 零知识证明 要了解zkSNARK,必须先...

2017/11/08 18:50
101
std bind 原理简单图解

本文解释了bind 是如何工作的。为了清晰,我对图中的语法作了一些简化(例如,省略函数调用操作符的参数类型),并且简化了 bind 的实现. bind 可以用来将用户提供的需要一个参数的函数转换成...

2017/11/01 20:07
35
gprof, Valgrind and gperftools - an evaluation of some tools for application level CPU profiling on

In this post I give an overview of my evaluation of three different CPU profiling tools: gperftools, Valgrind and gprof. I evaluated the three tools on usage, functionality, acc...

2017/08/11 18:33
89
How to Insert your Own Custom Objects Inside a std:::set

So, now if you need to push a bunch of custom objects (objects of your own class), how can you design your class so that they can be contained in set/multiset. As I said earlier...

2017/08/04 20:24
10
std::unique and removing duplicates from a container of objects

class Packet { public: Packet(string fTime, string rID) : filingTime(fTime), recordID(rID) string getFilingTime() {return filingTime;} string getRecordId() {return recordID...

2017/08/04 20:10
6

没有更多内容

加载失败,请刷新页面

返回顶部
顶部