static void StringToMoney() { Console.WriteLine(214748364700.ToString("C",CultureInfo.GetCultureInfo("en-us"))); } ...
一 python基础 课件1:基础语法# 设置全部行输出from IPython.core.interactiveshell import InteractiveShellInteractiveShell.ast_node_interactivity = "all" #打印:print("")tip ...
分类:
编程语言 时间:
2020-04-26 01:29:36
阅读次数:
73
1.equal()方法 Objects.equal方法可以避免jdk的equal()方法的对象为null时抛出空指针。 1 Objects.equal("a", "a"); // returns true 2 Objects.equal(null, "a"); // returns false 3 ...
分类:
其他好文 时间:
2020-04-23 12:25:17
阅读次数:
60
多道技术 多道技术是基于单核背景下产生的 cpu 执行过程(单核): 单道(串行): ? cpu 同一时间只能执行一个任务,这个任务不结束,不能执行其他任务 多道技术: ? cpu 在执行a任务时,a任务发生了 IO 操作或者是执行时间过长时,此时 cpu 可以将 a(保存状态)然后再切换去执行b任 ...
分类:
其他好文 时间:
2020-04-23 00:58:50
阅读次数:
85
编写函数convert(money),传入金额,将金额转换为千分位表示法,如输入 1293213 ,输出 1,293,213 ...
分类:
其他好文 时间:
2020-04-20 23:52:51
阅读次数:
100
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ag ...
分类:
其他好文 时间:
2020-04-19 10:48:26
阅读次数:
73
oracle下划线转驼峰select substr(replace(initcap('a' || 't_sys_user'), '_', ''), 2) from dual; 驼峰转下划线select regexp_replace('tSysUser', '([[:upper:]])(.)', '_ ...
分类:
数据库 时间:
2020-04-18 15:39:59
阅读次数:
80
一、赋值运算符 = 高频使用,右侧表达式结果赋值左侧变量 例:变量名 = 表达式 ? int money = 1000; int a = (b+c); 二、算数运算符 基本算数运算符 +,-,*,/,%,++(自加1),--(自减1)int a=4; 例: int a=4; int b=2; int ...
分类:
其他好文 时间:
2020-04-17 23:46:34
阅读次数:
79
vuex的相关使用 vuex中数据的调用 1. state 可以直接在vue元素上添加 在computed中添加 2. 使用mapState辅助函数 需要vue中引入 mapState 当vuex模块较多时,可以设置store属性namespace: true,然后在调用的时候表示出来自哪个模块 3 ...
分类:
其他好文 时间:
2020-04-16 19:41:49
阅读次数:
89
一.事务 mysql中,事务是一个最小的不可分割单元.事务能够保证一个业务的完整性. eg:银行转账 a -> -100 update user set money=money-100; b -> +100 update user set money=money+100; 实际程序中,如果只有一条语 ...
分类:
数据库 时间:
2020-04-16 15:02:28
阅读次数:
76