mysql> create table customer(mid char(5) primary key,th date,sex char(1) default '0'); Query OK, 0 rows affected (0.01 sec) mysql> desc customer; +---... ...
分类:
数据库 时间:
2019-01-11 18:03:26
阅读次数:
152
前言 Source Insight是一个面向项目开发的程序编辑器和代码浏览器,它拥有内置的对C/C++, C#和Java等程序的分析。能分析源代码并在工作的同时动态维护它自己的符号数据库,并自动显示有用的上下文信息。越是大规模的代码,越能显示出SI的强大之处。Linux服务器开发领域,很多时候代码往 ...
有的时候我们经常需要把sql中的某个字段换成想要的值 或者说当某个字段为空值赋值为0或true 写一个简单的例子 第一种写法 select name,ifnull(age,'0'),adress from user 第二种写法 select name,case when age is null th ...
分类:
数据库 时间:
2019-01-11 11:24:46
阅读次数:
394
https://blog.csdn.net/weixin_39837402/article/details/81054106 【Pytorch】CIFAR-10分类任务 2018年07月16日 16:23:36 theoreoeater 阅读数:505 2018年07月16日 16:23:36 th ...
分类:
其他好文 时间:
2019-01-10 15:46:28
阅读次数:
550
一、报错:File"G:/station/6系列装置信息明细.py",line12,in<module>workbook.save(r‘.\6系列装置明细表.xls‘)File"G:\python\lib\site-packages\xlwt\Workbook.py",line710,insavedoc.save(filename
分类:
其他好文 时间:
2019-01-09 18:45:37
阅读次数:
224
Problem: We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this mea ...
分类:
其他好文 时间:
2019-01-08 15:11:43
阅读次数:
179
Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removi ...
分类:
其他好文 时间:
2019-01-08 15:02:37
阅读次数:
118
import pandas as pdimport numpy as npimport osfrom sqlalchemy import create_enginedef get_station_weather(sql_engine,sid): data = pd.read_sql_query( "... ...
分类:
编程语言 时间:
2019-01-07 17:33:47
阅读次数:
626
结论: Java Config方式进行Bean的初始化: 温馨提示: 如果存在多个使用注解@PostConstruct修饰的方法,则这些方法执行顺序不确定 代码:https://github.com/helloworldtang/spring-boot-cookbook/blob/v1.0.2-th ...
分类:
其他好文 时间:
2019-01-07 00:21:14
阅读次数:
251
很明显而简单的树形$dp$: 设以节点$v$为根时的深度和 我们可以先处理出以$1$为根的深度和$f[1]$,那么我们怎么样才能不$dfs n$次来求出以其他点为根的深度和呢 我们考虑现在节点为$u$,子节点为$v$,那么当$v$为根的时候,$f[v]=f[u]+n-2*siz[v]$($size[ ...
分类:
其他好文 时间:
2019-01-06 20:41:45
阅读次数:
174