摘要:
First machine:git init --bare gitrepo.gitSecond machine:git clone user@server:~/gitrepo.gitcd gitrepotouch testgit add testgit commit -a# '-u' tells g... 阅读全文
摘要:
reson: unity exception1. open terminal: /usr/bin/**terminal** 2. run command on terminal: gsettings reset org.compiz.core:/org/compiz/profiles/unity/p... 阅读全文
摘要:
int(x[,base])将x转换为一个整数long(x[,base])将x转换为一个长整数float(x)将x转换到一个浮点数complex(real[,imag])创建一个复数str(x)将对象x转换为字符串repr(x)将对象x转换为表达式字符串eval(str)用来计算在字符串中的有效Pyt... 阅读全文
摘要:
1.修改matplotlibrc文件进入Python安装目录下的Lib\site-packages\matplotlib\mpl-data目录,打开matplotlibrc文件,删除font.family和font.sans-serif两行前的#,并在font.sans-serif后添加微软雅黑字体... 阅读全文
摘要:
配置远 程连接PostgreSQL数据库的步骤很简单,只需要修改 %PostgreSQL_path%/data 目录下的 pg_hba.conf 和 postgresql.conf。一、修改pg_hba.conf:配置对数据库的访问权限添加host all all 192.168.80.1/24 ... 阅读全文
摘要:
1 SERVER: 2 3 #!/usr/bin/python 4 # -*- coding: utf-8 -*- 5 import socket 6 import time 7 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 8 s.bind(('', 12345)) 9 s.listen(5)10 try:11 12 while 1:13 14 15 16 cs, ca = s.accept()17 18 print cs, ca19 while 1:20 ... 阅读全文