代码: import math from decimal import Decimal from decimal import getcontext from fractions import Fraction def func_test(num_list, num_list2): ''''' ma ...
分类:
编程语言 时间:
2020-03-21 18:13:05
阅读次数:
76
题目链接:http://codeforces.com/problemset/problem/17/D Nick is attracted by everything unconventional. He doesn't like decimal number system any more, and ...
分类:
其他好文 时间:
2020-03-21 16:23:31
阅读次数:
65
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2020-03-19 22:04:02
阅读次数:
72
1、重命名表名: ALTER TABLE tasks RENAME TO work_items; 2、添加列到表中: ALTER TABLE tasks ADD COLUMN complete DECIMAL(2,1) NULL AFTER description; 3、删除表中的列: ALTER ...
分类:
数据库 时间:
2020-03-18 15:49:47
阅读次数:
72
数据库的创建 数据库的分离与附加 生成脚本(架构,数据) 表:创建、修改、删除 字段类型介绍:int,bit,datetime,decimal(5,2),char/varchar/nvarchar 字符串类型n的区别:有n表示unicode编码,每个字符占一个字节; 没有n表示非unicode编码, ...
分类:
数据库 时间:
2020-03-18 15:27:45
阅读次数:
77
第一步 新建mvc项目 第二步 在models下面新建模型利类 public class Product { public int ID { get; set; } public string Name { get; set; } public decimal Price { get; set; } ...
分类:
Web程序 时间:
2020-03-18 13:11:55
阅读次数:
70
由于本人拥有C/C++的基础,所以在學習C#的時候還是比較快的,在最基礎的東西之中我只會記錄那些與C/C++不同的地方,或者個人認爲比較重要的地方。 0. 數據類型: C#中的數據類型與C++沒有太多的差異,具體情況如下表格。其中比較重要的是需要對decimal有一個印象,你可以理解為一個精度更高的 ...
import decimal as debb=de.Decimal('7.325').quantize(de.Decimal('.01'), decimal.ROUND_UP) print(bb) 输出:7.33 quantize() 方法将数字四舍五入为固定指数。 ...
分类:
其他好文 时间:
2020-03-15 20:32:35
阅读次数:
129
简写 全称(英文) 中文解释 BIN binary 二进制 OCT octal 八进制 HEX hexadecimal 十六进制 DEC decimal 十进制 ...
分类:
其他好文 时间:
2020-03-11 12:35:40
阅读次数:
69
1.标记的类型(list-style-type) list-style-type 属性设置列表项标记的类型。可选的值如下: 值描述 none 无标记。 disc 默认。标记是实心圆。 circle 标记是空心圆。 square 标记是实心方块。 decimal 标记是数字。 decimal-lead ...
分类:
Web程序 时间:
2020-03-09 22:38:51
阅读次数:
83