ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Axel <axel@technoserv.ru>
To: AltLinux Community <community@altlinux.ru>
Subject: [Comm] Re: прогу надо на python'е
Date: Fri, 22 Nov 2002 11:16:23 +0300
Message-ID: <20021122081623.GA12009@axel.tech.ts> (raw)
In-Reply-To: <20021122105520.387ca752.horohorinev@mail.ru>

On Fri, Nov 22, 2002 at 10:55:20AM +0300, Евгений В. Хорохорин wrote:

> "руками" и получившийся файл скормить программе - то все замечательно. Но хотелось бы
> чтобы программа сама умела распознавать формат строк, и начинать составлять статистику только
> для строк заданного формата. Возможно ли это? Как это сделать? 
> 
> P.S.: Язык програмирования python
>

Вопросы по Python лучше задавать в этот список рассылки:

Русскоязычная группа пользователей Python и Zope: http://zope.net.ru
Zopyrus@itconnection.ru


Для данного случая могу порекомендовать почитать описания функций модуля
re - это реализация регулярных выражений в Python. Обрабатывать только те
строки, которые подпадут под заданный шаблон. Или таким же образом
отлавливать строки с шапкой документа и пропускать их.

--
Axel




  parent reply	other threads:[~2002-11-22  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-22  7:55 [Comm] " Евгений В. Хорохорин
2002-11-22  8:04 ` Denis S. Filimonov
2002-11-22  8:12   ` Dmitry E. Oboukhov
2002-11-22  8:47   ` Евгений В. Хорохорин
2002-11-22  8:12 ` Sanja Byelkin
2002-11-22  8:45   ` Евгений В. Хорохорин
2002-11-22  8:16 ` Axel [this message]
2002-11-22  8:46   ` [Comm] " Евгений В. Хорохорин
2002-11-22 15:02 ` [Comm] " Vitaly Lugovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021122081623.GA12009@axel.tech.ts \
    --to=axel@technoserv.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git