2014年11月23日 星期日

英聽城鄉差距

英聽城鄉差距 北區A級是離島3.5倍/明年大考列採計門檻

http://news.ltn.com.tw/news/life/paper/829896

2014-11-14
〔記者吳柏軒/台北報導〕明年大學入學將首次採計高中英語聽力門檻,大考中心昨公布今年成績統計,全國約有十七%考生得A,八成考生落在B和C;若依地區細分,北區近二成得A,但東區及離島卻都不到一成,顯然城鄉差距仍左右英聽成績。


2014年11月22日 星期六

use idle3 within sublime




copy the following code and save it as "idle3.sublime-build"

{
  "path": "/usr/local/bin",
  "cmd": ["idle3", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.python"
}


2014年11月5日 星期三

Pygame in Python 3 @ mac

Install pygame in python 3 on mac

1. 安裝

https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leopard-fails-to-install#comment-636765


$brew install libvorbis sdl sdl_image sdl_mixer sdl_ttf portmidi

$brew install mercurial

http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.7.dmg

$pip3 install hg+http://bitbucket.org/pygame/pygame

2. 測試

http://inventwithpython.com/

http://programarcadegames.com/


2014年10月26日 星期日

2014年10月9日 星期四

数独、すうどく 、 sūdoku

http://zh.wikipedia.org/wiki/數獨

數獨 (日語数独すうどく sūdoku)是一種邏輯性[1][2]的數字填充遊戲,玩家須以數字填進每一格,而每行、每列和每個宮(即3x3的大格)有齊1至9所有數字。遊戲設計者會提供一部份的數字,使謎題只有一個答案。


at Google 
spreadsheets

http://goo.gl/CyE6bF


Solving Every Sudoku Puzzle in Python

by Peter Norvig





:::

還有這個 是 Tkinter 版








pygame 版

http://trevorappleton.blogspot.tw/2013/10/guide-to-creating-sudoku-solver-using.html

'''
sudoku_step_8.py

get this file from
http://trevorappleton.blogspot.tw/2013/10/guide-to-creating-sudoku-solver-using.html

$ 2to3
python 2 改成 python 3

replace / to //
(實數除法 改成 整數除法)

renyuan 2014/12/02
'''