This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
print 'Hello World' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 参考: | |
[VirtualBox如何扩展虚拟机Ubuntu的硬盘容量?](http://blog.csdn.net/ouyang_peng/article/details/53261599) | |
下面是按上述教程的实践总结; | |
## 我的环境: | |
- Windows 10 | |
- VirtualBox 5.1.6 r110634 (Qt5.5.1) | |
- Ubuntu 16.04 LTS | |
## 通过增加新分区扩展 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
gc.set_threshold(500, 10, 10) | |
class ClassA(object): | |
pass | |
print gc.get_count() | |
gc.collect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding:utf-8 -*- | |
###### 线程池 - by 汪蔚 [email protected] | |
import threading | |
import traceback | |
def default_fail_handle(): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import re | |
def testReChinese(): | |
"""测试匹配中文信息""" | |
source = "狗b狗B骂你祖宗" | |
temp = source.decode('utf8') | |
print "同时匹配中文英文" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyBatis Version: 3.3.0 | |
Exception Info: | |
exception: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'record.version != null'. Cause: org.apache.ibatis.ognl.NoSuchPropertyException: com.test.domain.domain.Po.version, dubbo version: 2.10.0.3, current host: 127.0.0.1 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'record.version != null'. Cause: org.apache.ibatis.ognl.NoSuchPropertyException: com.test.domain.domain.Po.version | |
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:79) | |
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:447) | |
at com.sun.proxy.$Proxy100.update(Unknown Source) | |
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:295) | |
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:55) | |
at org.apac |