代码搜索结果

找到约 10,000 项符合 Python 的代码

2.py

#!/usr/bin/python #-*- coding: utf-8 -*- import os import time import random import cPickle import gc class CPTTrain: def __init__(self, segment, train): self.__char_type = {} da

1.py

#!/usr/bin/python #-*- coding: utf-8 -*- import os import time import random import cPickle import gc class CPTTrain: def __init__(self, segment, train): self.__char_type = {} da

pttrain.py

#!/usr/bin/python #-*- coding: utf-8 -*- import os import time import random import cPickle import gc class CPTTrain: def __init__(self, segment, train): self.__char_type = {} da

listing15-7.py

#!/usr/bin/env python import cgi form = cgi.FieldStorage() name = form.getvalue('name', 'world') print """Content-type: text/html Greeting Page

backup_ver1.py

#!/usr/bin/env python # Filename: backup_ver1.py import os import time # 1. The files and directories to be backed up are specified in a list. source=['/home/swaroop/byte','/home/swaroop/bin'] # If

objvar.py

#!/usr/bin/env python # Filename: objvar.py class Person: '''Represents a person.''' population=0 def __init__(self,name): '''Initializes the person's data.''' self.name=name prin

raising.py

#!/usr/bin/env python # Filename: raising.py class ShortInputException(Exception): '''A user-defined exception class.''' def __init__(self,length,atleast): Exception.__init__(self) self.length=

backup_ver3.py

#!/usr/bin/env python # Filename: backup_ver3.py import os import time # 1. The files and directories to be backed up are specified in a list. source=['/home/swaroop/byte','/home/swaroop/bin'

backup_ver2.py

#!/usr/bin/env python # Filename: backup_ver2.py import os import time # 1. The files and directories to be backed up are specified in a list. source=['/home/swaroop/byte','/home/swaroop/bin'] # If

backup_ver4.py

#!/usr/bin/env python # Filename: backup_ver4.py import os import time # 1. The files and directories to be backed up are specified in a list. source=['/home/swaroop/byte','/home/swaroop/bin'