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
#!#!/usr/bin/env python3 | |
#------#------#------#------#------ | |
from tkinter import * | |
import tkinter.filedialog as filedialog | |
import tkinter.messagebox as msgbox | |
import tkinter.ttk as ttk | |
import os |
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
#!/usr/bin/python3 | |
# -*- coding:utf-8 -*- | |
''' | |
算24 | |
''' | |
from itertools import permutations | |
def check24(list1=[6,6,6,6],list2=[0,0,0]): | |
oplist=['+','-','*','/'] |
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
#!/usr/bin/python2 | |
# -*- coding:utf-8 -*- | |
# 出处 酷 壳 – CoolShell.cn | |
# http://coolshell.cn/articles/1480.html#more-1480 | |
# 如果你只想让这个HTTP服务器服务于本地环境,那么,你需要定制一下你的Python的程序,下面是一个示例: | |
import sys | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
HandlerClass = SimpleHTTPRequestHandler | |
ServerClass = BaseHTTPServer.HTTPServer |