[code]while(){ if($.==1){ chomp; %tab=(); @b=map{($tab{$_}==1)?($_):($_=$_.2)} split(/\s+/,$_); print "@b\n"; }else{ s/"(.*?)"/\1/g; print; } } __DATA__ Column1 Column2 Column3 Column4 Column3 Colum5 Data Data "Data" Data "Data" Data[/code]运行结果: Column12 Column22 Column32 Column42 Column32 Colum52 Data Data Data Data Data Data 某兄的题目,结果没搞定...
by mysqllog - Perl - 2011-06-20 00:09:26 阅读(2533) 回复(8)
本帖最后由 tianlijian 于 2014-03-20 12:28 编辑 echo '10443641200|one 1044364120|two' | sort -t '|' -k1 输出为 10443641200|one 1044364120|two 这个排序是反的。正常值应该为 1044364120|two 10443641200|one 需要安字典来排序,并非数字
# comm -13 c3.test.com c3.test.com.local |tail -n 20 assets/user/repo/970 assets/user/repo/971 assets/user/repo/972 assets/user/repo/973 assets/user/repo/974 assets/user/repo/975 assets/user/repo/976 assets/user/repo/977 assets/user/repo/978 assets/user/repo/979 assets/user/repo/980 assets/user/repo/981 assets/user/repo/982 assets/user/repo/983 assets/user/repo/984 assets/user/repo/985 assets/user...
想用sysinfo()得到内存使用情况
#include
我下载了wxPython2.8-win32-unicode-2.8.7.1-py25.exe,安装以后,运行了下面的代码:
import wx
app = wx.App()
frame = wx.Frame(None, title='hello')
frame.Show()
app.MainLoop()
将代码保存为wx.pyw后,在cmd里面输入python wx.pyw,出现提示信息:
Traceback (most recent call last):
File "wx.pyw", line 1, in
本帖最后由 二摄氏度的冰 于 2014-08-26 11:25 编辑 这是这两个图片的显示结果。 我改了驱动,支持了这块屏幕800*1280的,竖屏。板子是飞凌OK335xD。 以下是我对屏幕的配置。附件是该屏幕的的datasheet。 239 .name = "LCD_7_1280_800", 240 .width = 800, 241 .height = 1280, 242 .hfp = 16, 243 .hbp = 32, 244 .hsw = 16, 245 .vfp = 5, 246 .vbp = 2, 247 .vsw = 1, 248 .pxl_clk = 70050000,// 68 Mhz lhz 249 .inv...
比如说,对于 GetOptions('a=s'=>\$opt_a); 如果运行时只加了 -a,而没在 -a后面加上一个string,运行之后只会报一个warning,程序其实还是能继续往后运行的 。 能不能或者有没有办法,在参数不正确时,让程序退出? 怕没描述清,再描述一点: 如果加了-a,并且在-a之后无string时,退出。 如果没加-a,仍旧正常运行,不退出。 请高手帮忙,谢谢~
> su Password: # crontab -l #ident "@(#)root 1.21 04/03/23 SMI" # # The root crontab should be used to perform accounting data collection. # # 10 3 * * * /usr/sbin/logadm 15 3 * * 0 /usr/lib/fs/nfs/nfsfind 30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean # # The rtc command is run to adjust the real time clock if and when # daylight savings time changes. # 1 2...