Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except n ...
分类:
其他好文 时间:
2020-01-31 10:19:39
阅读次数:
57
数字类型 数字类型是不可变类型。所谓的不可变类型,指的是类型的值一旦有不同了,那么它就是一个全新的对象。数字1和2分别代表两个不同的对象,对变量重新赋值一个数字类型,会新建一个数字对象。 还是要强调一下Python的变量和数据类型的关系,变量只是对某个对象的引用或者说代号、名字、调用等等,变量本身没 ...
分类:
编程语言 时间:
2020-01-30 20:51:00
阅读次数:
95
$\underline{Def:}$A func $U(\subset \mathbb{C}) \stackrel{f}\longrightarrow \mathbb{C}$is (complex) differentiable at a point $z_0 \in intU$(int:内部) I ...
分类:
其他好文 时间:
2020-01-30 15:50:33
阅读次数:
82
//关于友元:可以自由取得friend中private成员 //相同class的各object互为友元 #include <iostream> using namespace std; class complex{ public: complex(int r=0,int i=0) :re(r),im ...
分类:
其他好文 时间:
2020-01-29 12:51:32
阅读次数:
74
最近区块链大热,走到哪儿都有人在讨论区块链和比特币,甚至于一些对密码学完全没有概念的人都开始大肆吹捧,不免让人嗤之以鼻。相信很多技术和非技术的朋友都希望能够更深层次地去了解它是如何工作的。本文将用不到四千字来尝试阐述区块链的实现原理:为什么需要区块链这么复杂玩意儿?For every complex... ...
分类:
其他好文 时间:
2020-01-29 12:33:01
阅读次数:
91
#include <iostream> using namespace std; template<typename T> class complex{ public:complex(T r=0,T i=0) :re(r),im(i) {} T real() const{return re;}//函 ...
分类:
其他好文 时间:
2020-01-29 12:10:49
阅读次数:
63
[TOC] 内置类型转换 可直接查看变量类型 补充: 数学 分数 复数 1. complex(real,imag) 2. j为虚数单位,如2+3j 字符串 "成员函数" : 返回全部转换为大写的原字符串 : 返回全部转换为小写的原字符串 : 返回句首字母大写的原字符串 : 返回每个单词的首字母大写的 ...
分类:
编程语言 时间:
2020-01-28 19:11:59
阅读次数:
92
main.cpp 1 #include <stdio.h> 2 #include "Complex.h" 3 int main() 4 { 5 complex c1(1,2); 6 complex c2(3,4); 7 complex c3 = c2 / c1; 8 complex c4(0, 0) ...
分类:
其他好文 时间:
2020-01-28 09:41:14
阅读次数:
83
变量的基本使用 程序就是用来处理数据的,而变量就是用来存储数据的 01. 变量定义 在 Python 中,每个变量 在使用前都必须赋值 ,变量 赋值以后 该变量 才会被创建 等号(=)用来给变量赋值 左边是一个变量名 右边是存储在变量中的值 变量定义之后,后续就可以直接使用了 1) 变量演练1 —— ...
分类:
编程语言 时间:
2020-01-27 09:47:47
阅读次数:
88
Exercises 3.2 21. (a). For $\omega = sinz$, what is the image of the semi-infinite strip $S_1 = \{x+iy|-\pi<x<\pi,y>0\}$ (b). what is the image of the ...