总结:当我们感觉数字排列横排,竖排不好看的时候,学会空几行在排列,哎呦,效果不错喔 package com.aa; public class West2 { public static void main(String[] args) { int count = 0; for (int i = 0; i <= 100; i++) {// 每隔3行打印出一行数字 if (i % 5 == 0) { System.out.println(" "); } System.out.prin
3.学会使用一些管理命令 ps/top/lsof/netstat/kill/tcpdump/iptables/dd 端口查看 ps -- process status ps aux 观察程序所有程序资料 ps l 显示程序 uid pid ppid 等内容 ps AI 显示所有程序 的uid pid ppid top -- display and update sorted information about processes 不用多说,这个命令观察系统信息进程 top -b -n 2 >
linux 中解析命令行参数(getopt_long用法) http://www.educity.cn/linux/518242.html 详细解析命令行的getopt_long()函数 http://www.codeweblog.com/%E8%AF%A6%E7%BB%86%E8%A7%A3%E6%9E%90%E5%91%BD%E4%BB%A4%E8%A1%8C%E7%9A%84getopt_long-%E5%87%BD%E6%95%B0/ C/C++中有哪些简单好用的命令行参数解析工具? h
需求:编写一个从1循环到150并在每行打印一个值,另外在每个3的倍数行上打印出foo,在每个5的倍数行上打印biz,在每个7的倍数上打印baz. package study01; public class For { public static void main(String[] args) { for(int i = 1;i<=150;i++){ System.out.print(i); if(i%3==0){ System.out.print(" foo"); } if(i