1.Expanded组件 占满可用空间 -----可以到达类似flex布局中 第一列占用大量空间,所以它必须包装在Expanded widget中. 写死的高度改成Expanded自动撑满屏幕如果还是不能撑满试试加上flex:1的属性 Expanded expands its child to fill the available space --Using an Expanded widget makes a child of a Row, Column, or Flex expand to…
1. 字符串有整型的相互转换 1 2 String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int 2. 向文件末尾添加内容 1 2 3 4 5 6 7 8 9 10 11 BufferedWriter out = null; try { out = new BufferedWriter(new FileWrite…
1.TEMPLATE_DIRS relative to the project folder http://stackoverflow.com/questions/9856683/using-pythons-os-path-how-do-i-go-up-one-directory When developing with Django we need to specify our templates directory inside the settings.py with the TEMPLA…
让Windows下的MySQL表名大小写敏感: 在mysql查询中执行:SHOW VARIABLES LIKE 'lower_case_table_names'; 值的含义--->0:大小写敏感:1:大小写不敏感 操作: 1.修改MySQL的“my.ini”文件,在文件最末新增一行:“lower_case_table_names=0” 2.重启MySQL服务即可生效. MySQL比较时间大小,如: where time1 between '2011-03-03 17:39:05' and '20…