Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
---
-
高级
-
易学易读易维护
cd Documents/zipperary | |
hexo n '{query}' | |
open ./source/_posts/ | |
cd source/_posts/ | |
file=`ls -rt | tail -1`&&open $file -a Mou | |
cd ~/Documents/zipperary |
#!/bin/zsh | |
#for hexo | |
cd ~/Documents/zipperary | |
hexo n "$1" | |
cd source/_posts/ | |
file=`ls -rt | tail -1`&&open $file -a Mou |
clear all; | |
clc; | |
ncluster = 10; | |
%%%%%%%读入数据 | |
path_c = 'car feature/'; | |
path_d = 'dinosaur feature/'; | |
%恐龙 | |
d_dir = []; | |
d_inf = []; | |
files_d = dir(strcat(path_d ,'*.txt')); |
#!/usr/bin/env python | |
#coding=utf-8 | |
import os | |
from numpy import array | |
from scipy.cluster.vq import vq, kmeans, whiten, kmeans2 | |
from sklearn import svm | |
from sklearn import cross_validation | |
ncluster = 6 #聚类数 | |
######## |
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
#coding=utf8 | |
##版本:1.0 | |
##环境:python2.7 | |
##作者:moxie | |
##日期:2013.08.23 | |
##说明:文件生成目录为:D:/ludatui | |
import urllib2,urllib | |
import re |
#coding=utf8 | |
##版本:1.0 | |
##环境:python2.7 | |
##作者:moxie | |
##日期:2013.08.20 | |
import urllib2 | |
import re | |
import threading |
#coding=utf-8 | |
##版本:1.0 | |
##环境:python2.7 | |
##作者:moxie | |
##日期:2013.08.18 | |
##第三方依赖:requests和BeautifulSoup4 | |
import re | |
import requests as rq |
#encoding=utf-8 | |
import requests as rq | |
from bs4 import BeautifulSoup as bs | |
lgurl = 'http://mlook.mobi/member/login' | |
host = 'http://mlook.mobi' | |
tmpurl = 'http://mlook.mobi/book/info/6248' | |
hds = { 'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36', | |
'Referer':'http://mlook.mobi/member/login', |