摘要:
修复 在liveCD下先挂载相应分区,然后使用grub-install进行修复。 注意:如果系统是使用systemd的,修复环境也要是基于systemd的(直接搞个ubuntu的livecd好了),否则grub-install可能会失败(提示 cannot read 'boot/efi': Is a 阅读全文
摘要:
使用pycharm时在类、方法/函数、变量上按下Ctrl+Q时会显示其对应的描述和docstring,我记得默认情况下鼠标在其上停留一秒就会自动显示,但是不知为何最近不自动显示了,重新开启方法如下: 确认关闭 Power Save Mode 在设置中勾上 Show the documentation 阅读全文
摘要:
看这个例子: def my_print(val): print val lst = [1, 2, 3] func_list = [] for x in lst: func_list.append(lambda: my_print(x)) for func in func_list: func() " 阅读全文
摘要:
# ls options export LS_OPTIONS='--color=auto' alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # log and search exp 阅读全文