This file contains hidden or 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
    
  
  
    
  | #解决Python2.7的UnicodeEncodeError: ‘ascii’ codec can’t encode异常错误 | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') | 
  
    
      This file contains hidden or 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
    
  
  
    
  | python http://v.163.com/special/opencourse/bianchengdaolun.html | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Date.prototype.format = function(format) | |
| { | |
| var o = { | |
| "M+" : this.getMonth()+1, //month | |
| "d+" : this.getDate(), //day | |
| "h+" : this.getHours(), //hour | |
| "m+" : this.getMinutes(), //minute | |
| "s+" : this.getSeconds(), //second | |
| "q+" : Math.floor((this.getMonth()+3)/3), //quarter | |
| "S" : this.getMilliseconds() //millisecond | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ./configure --enable-optimized --enable-assertions --enable-expensive-checks | |
| CXXFLAGS+="-fexceptions" make -j3 | 
NewerOlder