一、for循环定义:将一段代码反复执行;----->进入条件;------>退出条件;二、语法格式:for变量名inLISTdostatement1...doneforVARinLIST;dostatement1;statement2;...;done三、LIST:列表定义:包含至少一个元素的字符串集合;LIST的生成方法:(1)直接给出;(2)数值列表..
分类:
其他好文 时间:
2015-07-11 18:50:14
阅读次数:
228
1.假如又多一层layer sequence:
1)需要2个时间槽。
2)需要在增加一个umv_wait_for_nba_region,不好。
2.问题的关键是item_done 和try_next_item 在同一时刻被调用,导致了时间槽的竞争。如果能错开,这个问题就不是问题:...
分类:
其他好文 时间:
2015-07-09 17:57:23
阅读次数:
481
原文 Late in the afternoon, the boys put up their tent in the middle of a field. As soon as this was done, they cooked a meal over an open fire. The were all hungry and the food smelled good. After...
分类:
其他好文 时间:
2015-07-09 13:21:22
阅读次数:
113
1.首先拿到一个apk,对其进行反编译重命名为xxx.zip解压,把解压完成的classes.dex 放到dex2jar进行反编译反编译方法:cmd下cd到E:\安卓\安卓反编译 目录执行dex2jar.bat classes.dex done之后会生成classes_dex2jar.jar2.把这...
分类:
其他好文 时间:
2015-07-09 11:02:36
阅读次数:
139
[root@localhost mail]#tmp=`mailq | grep -E "root" | awk '{print $1}'`
[root@localhost mail]# echo $tmp
8F5B4C0653 9A100C065A
[root@localhost mail]# for i in $tmp;do postsuper -d $i;done...
分类:
系统相关 时间:
2015-07-07 22:48:58
阅读次数:
411
#!/bin/bash
#author:movekj.com
#date:2015.7.6
#description:print9*9table
#version:0.0.1
declare-iI=0
declare-iJ=0
declare-iN=0
forIin{0..8}
do
A[$I]=$[$I+1]
done
while[$J-le8]
do
forNin{0..8}
do
if[$N-lt$J]
then
echo-en"${A[$J]}X${A[$N]}=\033[31m$[${A[$J]}*..
分类:
其他好文 时间:
2015-07-06 20:05:27
阅读次数:
91
3.3.4 Python
创建一个embed.py文件,然后编辑如下:
from ctypes import cdll
lib = cdll.LoadLibrary("target/release/embed.dll")
lib.process()
print("done!")
更简单了!我们使用ctypes模块中的cdll.调用了LoadLibra...
分类:
其他好文 时间:
2015-07-03 15:57:16
阅读次数:
140
1.Until循环语句#!/bin/bash
a=10;
until[[$a-lt0]];
do
echo$a;
((a--));
done;2.case选择语句#!/bin/bash
#autoinstallLAMP
#by2015-6-30
case$1in
apache)
echo"waitforinstallhttpdserver..."
yuminstallhttp*-y
;;
mysql)
echo-e"waitfoinstallmysqlserver..."
yuminsta..
分类:
系统相关 时间:
2015-07-01 18:40:38
阅读次数:
201
你是不是被中国乱码困扰???然后阅读假设你是windows用户,首先打开cmd.exe 输入命令 mysql 不要以为有问题的环境变量,该mysql的bin到环境变量path在 下一步骤是在my.ini变化character-set-server=utf8 DONE真是坑! ...
分类:
数据库 时间:
2015-07-01 17:21:29
阅读次数:
144
#!/bin/bash
#你必须知道的shell里面关于数组的操作。
arr=("hello" "word" "you" "are" "a" "good" "boy")
#arr=(`ls`)#我喜欢这个方法。echo "-------for----------------"
for I in ${arr[@]}
do
echo $I
done
echo "--------for------...
分类:
编程语言 时间:
2015-07-01 14:11:41
阅读次数:
120