基本上 eval 上用来评估一个动态生成的 Python 表达式;exec 额外的用于执行动态生成的 python 代码。 eval 和 exec 有以下两个差异 eval 只接受一个表达式,exec 可以接受一个包含了 python 语句的代码块: loops, try: except:, cla ...
分类:
编程语言 时间:
2018-12-15 16:23:08
阅读次数:
265
<div class="tab-pane" id="deviceControl"> 设备控制面板 <ul class="list-unstyled"> <li> <i class="fa fa-tv" style="margin-right: 10px;"></i><a href="#">菜单1</ ...
分类:
其他好文 时间:
2018-12-14 22:44:15
阅读次数:
125
按 ip进行流量限制 acl number 3300 description 10M-HK rule 25 permit ip destination X.X.X.X 0 rule 30 permit ip destination X.X.X.X 0 traffic classifier 10M-H ...
分类:
其他好文 时间:
2018-12-10 15:38:58
阅读次数:
805
Linux Device Model是一个复杂的数据结构,将系统中的电源管理、设备、和用户空间的交互联结在一起。 Kobjects, Ksets, and Subsystems struct kobject 是设备模型的基础数据结构,包含以下功能: 1. 对象的引用计数 2. sysfs中的每一个文 ...
分类:
系统相关 时间:
2018-12-05 18:37:07
阅读次数:
172
$query = Order::find()->select(['order_sys_id'])->where(['order_car_id'=>'AA','order_status'=>'10'])->orderBy(['create_time'=>SORT_DESC]);$commandQuer ...
分类:
数据库 时间:
2018-12-04 13:04:35
阅读次数:
230
基础环境系统环境#cat/etc/redhat-releaseCentOSLinuxrelease7.3.1611(Core)主机名设置centos-master192.168.59.135centos-minion1192.168.59.132centos-minion2192.168.59.133关闭selinux和firewalld后重启服务器#systemctlstopfirewalld#
分类:
Web程序 时间:
2018-12-03 19:57:27
阅读次数:
123
正在学习计算机组织与结构,为了写一些底层的算术操作模拟,比如一个二进制补码数的加减乘除,发现这很麻烦,因为不管是什么语言,都只提供了8位、32、64位等部分位数的补码形式,那么怎么实现任意任意位的补码整数呢,由于我们不能利用现有的如Byte、Integer类,所以我们需要一个容器来存储我们自己编写的 ...
分类:
其他好文 时间:
2018-12-01 22:11:25
阅读次数:
226