这里主要介绍二进制、十进制、十六进制的转换 一.基本概念: ①数码:用来表示进制数的元素 binary二进制数码:0,1 decimal十进制数码:0,1,2,3,4,5,6,7,8,9 hexadecimal十六进制数码:0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F ②基数:数码 ...
分类:
其他好文 时间:
2020-04-04 20:19:49
阅读次数:
63
简单类型 模型绑定器能将源字符串转换为其本身的简单类型包含如下: Boolean Byte, SByte Char DateTime DateTimeOffset Decimal Double Enum Guid Int16, Int32, Int64 Single TimeSpan UInt16, ...
分类:
Web程序 时间:
2020-04-03 21:43:43
阅读次数:
178
class DecimalEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, decimal.Decimal): return float(o) super(DecimalEncoder, self).default(o ...
分类:
Web程序 时间:
2020-04-03 16:46:18
阅读次数:
71
新建一张测试表: CREATE TABLE `tb1` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `a` decimal(19,2) NOT NULL, `acid` bigint(20) NOT NULL, `prid` bigint(20) NOT N ...
分类:
数据库 时间:
2020-04-01 19:20:23
阅读次数:
215
[toc] Description A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — a ...
分类:
其他好文 时间:
2020-03-28 20:25:08
阅读次数:
93
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:
其他好文 时间:
2020-03-28 13:19:11
阅读次数:
58
create table t1( id int signed not null auto_increment primary key, num decimal(10,5), name char(10) )engine=innodb default charset=utf8; 多对多 双向的FK() ...
分类:
数据库 时间:
2020-03-26 09:27:25
阅读次数:
82
在C#中,变量分为一下几种类型 1 值类型 2 引用类型 3 指针类型 一 值类型 值类型是从类System.Valuetype中派生。值类型变量可以直接赋值,值类型直接包含数据。 比如bool、byte、char、decimal、double、float、int、long、sbyte(8位有符号整 ...
一个小小的问题 我居然纠结了小半天,我也是醉醉的了喔,天啊 到最后发现。。。。。的问题,之前总感觉是我写法或者哪里的小细节的地方呢,我去 着急的我都想讲 脏话了,嗯 稳住 淑女 调试到这里的时候一直感觉 没有问题啊,哪里的问题。。。 然后 换了一下思路,代码 确实 没啥问题 要不把这个引用的Newt ...
分类:
Web程序 时间:
2020-03-24 21:36:26
阅读次数:
211
在调试ASP.NET MVC时出现:传入字典的模型项为 null,但此字典需要类型“System.Decimal”的非 null 模型项。 问题原因:在控制器里面的View没有返回项应的结果给视图 处理后: ...