看《Go入门指南》,这里讲得比较基础,针对go 1.0版,以下是一些我自己觉得特别和不容易理解的地方的摘抄!上次有说到go里不同类型之间操作必须显示转换,int和uint不固定,所以int 不是int32int和uint在 32 位操作系统上,它们均使用 32 位(4 个字节),在 64 位操作系统...
分类:
其他好文 时间:
2014-07-19 17:05:18
阅读次数:
312
from django.utils import timezoneimport datetimetimezone.now()datetime.datetime(2014, 7, 18, 9, 42, 24, 531000, tzinfo=)timezone.now() -datetime.timed...
分类:
其他好文 时间:
2014-07-19 16:38:09
阅读次数:
235
组合Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]Description给出组合数C(n,m), 表示从n个元素中选出m个元素的方案数。例如C(5,2) = 1...
分类:
其他好文 时间:
2014-07-19 11:20:32
阅读次数:
237
KM 构图求最小权值匹配保证最小的权值,所连的边一定是能够不相交的.AntsTime Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %llu[Submit] [Go Back] [Status]DescriptionYoung nat....
分类:
其他好文 时间:
2014-07-19 00:24:57
阅读次数:
297
Javascript刷新页面的几种方法:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand('Refresh')6 window.navigate...
分类:
编程语言 时间:
2014-07-18 16:15:24
阅读次数:
219
javascript refresh page 几种页面刷新的方法本节内容:Javascript刷新当前页面的方法与实例。window.location.reload(),window.history.go(0)和document.execCommand(''Refresh''),这三个方法是最快速...
分类:
编程语言 时间:
2014-07-18 15:23:57
阅读次数:
199
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that...
分类:
编程语言 时间:
2014-07-18 14:02:00
阅读次数:
282
Description
Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silver, Silver, Silver, Silver, Bronze, Bronze, Bronze, Go...
分类:
其他好文 时间:
2014-07-18 11:23:05
阅读次数:
280
--创建数据库createdatabase数据库go--打开数据库use数据库--删除数据库dropdatabase数据库Go--创建数据表createtable数据表(列名1数据类型1限定条件(是否是主外键、是否为空),列名2数据类型2限定条件(是否是主外键、是否为空))go--删除数据表drop...
分类:
数据库 时间:
2014-07-17 23:11:37
阅读次数:
381
问题来源用sqlserver直接打开sql文本,执行没问题,但是当用Sqlcommand类执行cmdtext命令文本时总是失败报错。原因分析及解决用数据库直接执行sql语句没问题,甚至还可以用Go来进行分批处理,但是当你用链接类访问数据库,并执行sql语句时就有些限制,如下:System.Data....
分类:
数据库 时间:
2014-07-17 22:17:59
阅读次数:
466