摘要: # ~/.bashrc: executed by bash(1) for non-login shells.# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)# for examples# Source global definitionsif [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrcfi# If not running interactively, don't do anything[ -z "$PS1" ] & 阅读全文
posted @ 2013-09-12 21:34 花瓣奶牛 阅读(564) 评论(0) 推荐(0)
摘要: "******************************************************************""基础设置set number "显示行号syntax on "自动语法高亮,我自己测试了一下,好像打开和关闭的效果都是一样的set hlsearch "搜索时高亮被找到的文本set nocompatible "关闭vi兼容模式filetype on "检测文件类型set mouse=a "使用鼠标定位set autoindent "设置自动缩进:即每行的缩进值 阅读全文
posted @ 2013-09-12 21:33 花瓣奶牛 阅读(331) 评论(0) 推荐(0)
摘要: 今晚测试了一下,发现globals()[ ]函数只能引用同一个文件中的全局变量,对于不同文件中的变量就无能为力,而且,有点奇怪的是对于在函数中引用变量的问题,如果引用的是列表和字典,那么可以在函数中修改它的值,但是对于普通的变量,在函数中无法修改他的值,因为传递给函数的只是一个复制的值 1 #!/bin/usr/python 2 import sys 3 sys.path.append('/home/tcstory/desktop') 4 import b 5 test={'a':1} 6 b.testing(test) 7 x=4 8 b.test1(x) 9 阅读全文
posted @ 2013-09-12 19:32 花瓣奶牛 阅读(1490) 评论(0) 推荐(0)
摘要: 这个方法其实实在ubuntu中文论坛找到的,但是后来我找不到原来的地址了,所以凭着印象把他写了出来,供大家参考在~/.config/fcitx 目录下,找到config 文件,打开它,在大约53行那里修改SwitchPreedit的内容,按照我所给出的截图修改就行了,然后注销或者重启就可以了 阅读全文
posted @ 2013-09-12 19:04 花瓣奶牛 阅读(192) 评论(0) 推荐(0)