前言:python的基本数据类型可以分为三类:数值类型、序列类型、散列类型,本文主要介绍数值类型 一、数值类型 数值类型有四种: 1)整数(int):整数 2)浮点数(float):小数 3)布尔值(bool):只有两个值True和False 4)复数(complex):和数学中的复数一样由实部和虚 ...
分类:
编程语言 时间:
2020-01-22 12:58:56
阅读次数:
89
Download Here is the document DynkinDiag.pdf Dynkin diagram, root system is a big mystery of my undergraduate life. Here I present three examples tha ...
分类:
其他好文 时间:
2020-01-21 00:37:09
阅读次数:
85
As our state machines grow more complex, we might find ourselves in a situation where a state should only exist if the machine is already in another s ...
分类:
其他好文 时间:
2020-01-20 00:06:47
阅读次数:
77
#include<iostream> using namespace std; class complex { public://被公有外界使用的public, complex (double r=0,double i=0) :re(r), im(i) { } complex& operator + ...
分类:
其他好文 时间:
2020-01-19 22:27:32
阅读次数:
132
https://pintia.cn/problem-sets/12/problems/348 1 struct complex multiply(struct complex x, struct complex y) 2 { 3 struct complex ret; 4 5 ret.real = ...
分类:
其他好文 时间:
2020-01-17 13:55:22
阅读次数:
117
知识点回顾 Python 中数据类型可以分为 数字型 和 非数字型 数字型 整型 (int) 浮点型(float) 布尔型(bool) 真 True 非 0 数 —— 非零即真 假 False 0 复数型 (complex) 主要用于科学计算,例如:平面场问题、波动问题、电感电容等问题 非数字型 字 ...
分类:
编程语言 时间:
2020-01-13 09:25:55
阅读次数:
94
常用的数据类型转换 目标 了解类型转换的作用 掌握常用的类型转换 函数说明 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) ...
分类:
编程语言 时间:
2020-01-12 09:36:29
阅读次数:
67
Supplementary knowledge: 1. sensitivity analysis; 敏感度分析 sensitivity analysis is the study of how the uncertainty in the output of a mathematical model ...
分类:
Web程序 时间:
2020-01-11 09:43:50
阅读次数:
104
请看程序: 1 #include <stdio.h> 2 class Complex 3 { 4 int a; 5 int b; 6 public: 7 Complex(int a,int b) 8 { 9 this->a = a; 10 this->b = b 11 } 12 friend Com ...
分类:
其他好文 时间:
2020-01-10 15:43:10
阅读次数:
101
1. 数字 #整型 print(int(3.41)) #浮点型 print(float(3)) #复数 print(complex(2,3)) #四舍五入为整数 print(round(3.45)) 2. 字符串 #字符串str a=' asDf ' #字符串首字母大写 print(a.title( ...
分类:
编程语言 时间:
2020-01-09 20:38:49
阅读次数:
86