布局: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:lay ...
分类:
其他好文 时间:
2017-05-16 20:46:23
阅读次数:
244
1、在kvm主机上修改配置文件[root@node160~]#virsheditCentOS-7.3-X86_64
将xml配置文件中的:
<cpumode=‘custom‘match=‘exact‘>
<modelfallback=‘allow‘>IvyBridge</model>
</cpu>
修改为:
<cpumode=‘host-passthrough‘/>2、kvm关于cpu型号的..
分类:
其他好文 时间:
2017-05-16 14:58:21
阅读次数:
4127
Task 1 : 首字母大写 赏析: re.sub,实现正则的替换。 Pattern : r"w+"表示匹配数字和字母下划线的多个字符。 repl : lambda match:match.group(0).capitalize()表示首字母大写。 ...
分类:
编程语言 时间:
2017-05-16 14:47:09
阅读次数:
193
1 @model Lixise.HealthCloud.ServiceOrder.Models.ServiceOrderEdit 2 @using Lixise.HealthCloud.ServiceOrder.Utils 3 @{ 4 ViewBag.Title = "Create"; 5 Lay ...
分类:
Web程序 时间:
2017-05-16 13:08:44
阅读次数:
286
Sublime Text3 React.js开发常用插件 本文主要是针对jsx语法的,用来快速编写组件中的html部分。 babel 支持ES6、React.js、jsx代码语法高亮。 安装 command+shift+p -> install package -> babel 配置 该插件不需要额 ...
分类:
Web程序 时间:
2017-05-16 12:58:42
阅读次数:
159
在R中使用正则,可以指定perl=True 构造复杂正则,这也是本人比较熟悉在方式 正则中使用了向前引用,使用了() ,可以使用perl=TRUE 来指定 ...
分类:
其他好文 时间:
2017-05-16 10:56:14
阅读次数:
133
右键项目“Properties”,在弹出的“Properties”窗口左侧,单击“Project Facets”,打开“Project Facets”页面。在页面中的“Java”下拉列表中,选择相应版本就OK了 ...
分类:
编程语言 时间:
2017-05-15 22:37:02
阅读次数:
279
1Python的数据结构: 1:序列: 列表(可改变) 元祖 (不可改变) 2:映射:字典 3:无序:集合 ASCII:八位 Unicode:16位 2Python的函数 abs:绝对值 match.sqrt:开方 match.ceil:上入 match.floor:下入 pow:幂 repr:字符 ...
分类:
编程语言 时间:
2017-05-14 22:55:30
阅读次数:
329
Data frame 和 series 的运算:横列相加减:按照index ,row 的方向直接相加减。frame-series纵列相加减:按照 columns,运用算术函数,相加减。 frame.sub(series3, axis=0) '''operation between data fram ...
分类:
其他好文 时间:
2017-05-14 18:54:28
阅读次数:
269
近期在工作中遇到了这样一个问题,使用一个GridView展示数据,item中仅仅是一个TextView,可是里面显示的文字多少不固定多少,必须所有展示出来. 遇到的问题: 1.把item中的宽和高设置match_parent,还是设置成wrap_content,当内容过多的时候,会覆盖下一行的显示的 ...
分类:
其他好文 时间:
2017-05-14 13:48:45
阅读次数:
252