Development

Pythonコード:
#-*- coding:utf-8 -*-

import win32com.client

def check_exsit(process_name):
WMI = win3 ...

Development

Pythonコード:
def createDaemon():
”’ determinato programm…”’

import os

# create – fork 1
t ...

Development

Pythonコード:

#!/usr/bin/python

from struct import *
import string

def ip2string( ip ):
a = (i ...

Development

Pythonコード:
import xlrd

fname = “startnews24_sample.xls”
bk = xlrd.open_workbook(fname)

Development

Pythonコード:

import pycurl
import StringIO

url = “
crl = pycurl.Curl()
crl.setopt(pycurl. ...

Development

Pythonコード:
import socket
sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.settimeout(1)
try: ...

Development

Python コード:
import pycurl
import StringIO
import urllib

url = “
post_data_dic = {“n ...

Development

1.ファイル操作のPythonコード:
import string, os, sys
import StringIO

def writedata(fd, msg):
fd.write(msg) ...

Development

サンプルコード:

sUrl = ‘
sock = urllib2.urlopen(sUrl)
sock.headers.values()

Development

Pythonのコード下記:
#!/usr/bin/env python
#coding=utf-8
import os,os.path
import shutil,string

dir = ...

Development

スクリプトのコード:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# backup.py

”’ バックアップしたいファ ...

Development

Pythonコード:
#-*- encoding:utf-8-*-
import hashlib

a = “都議会、ヤジ自粛の動き”
print hashlib.md5(a) ...

Development

サンプルコード下記:
def bubble(list):
flag=1
tail=len(list)-1
while(flag):
flag=0
for i in range(tail) ...

Development

サンプルコード:

import urllib

def urldecode(query):
d = {}
a = query.split(‘&’)
for ...

Development

サンプルコード:

#-*- encoding: utf-8 -*-
import uuid

print uuid.uuid1()
print uuid.uuid3(uuid.NAMESPACE_ ...

Development

Pythonコード:
#/bin/env python
#coding:utf-8

import socket,select,sys,time
import thread

s_list ...

Development

Pythonコード:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import time

sourceDir = ...

Development

Pythonコード:
import sys,os,msvcrt

def join(in_filenames, out_filename):
out_file = open(out_filename,  ...