- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 python 批量ping 脚本,并把结果保存在不同的2个文件种。
# -!- coding: utf-8 -!- import os import subprocess def ping_test(): ips = open("ip-2.txt","r") ip_True = open("ip_True.txt",'w') ip_False = open("ip_False.txt",'w') count_True,count_...
2020-04-29 19:50:33 695
原创 Python format方法
第一次通过print函数显示字符串时,看到了 print('shuzi {0} and {1} add resulte:{2}'.format(num1,num2,sum)) 发现了format前面有一个点,以为是错的,取消后,运行时反而保存。后来经过仔细阅读 .format() 函数才发现,'.'是必须的。 通过以下这个例子举例来说明: print('{2}+{0}={1}'.f...
2018-08-23 21:32:59 533
转载 Makefile 文件的编写
学习前的准备 需要准备的工程目录结构如下: . ├── add │ ├── add_float.c │ ├── add.h │ └── add_int.c ├── main.c └── sub ├── sub_float.c ├── sub.h └── sub_int.c 文件编译为可执行文件cacu NOTE:需要的源代码:MakefileEx
2015-03-09 16:15:25 349
转载 uboot启动阶段修改启动参数方法及分析
Arm板系统文件一般有三个——bootloader(uboot)、kernel(uImage)及根文件系统(rootfs)。在arm板上电后,按uboot->kernel->rootfs的顺序依次启动。由于开发板上有多种存储介质,三个文件可以放在任何可以存储的介质上,因此也就导致文件的多种启动方式。本文就来讨论,以上三个文件对应不通存放位置的不同启动配置。 一般开发板上会有flash(Nor
2015-03-09 15:53:42 462
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人