Skip to content

Instantly share code, notes, and snippets.

View xunkai55's full-sized avatar

Xunkai xunkai55

  • Beijing, China
View GitHub Profile
@xunkai55
xunkai55 / Shakespeare_converge.py
Last active August 29, 2015 14:00
test Shakespeare's converge
from __future__ import division
import random
def generate_by_shuffle(words_len_lst):
rst = words_len_lst[:]
random.shuffle(rst)
return rst
def calc_a(wll, sel_ratio):
m = len(wll)
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8"/>
<title>
CHOP YOUR HANDS!!
</title>
<link rel="stylesheet" type="text/css" href="settings.css"/>
<script type="text/javascript" src="settings.js">
</script>
</head>