Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64109
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <naccttemha@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'string.': 0.05; 'subject:Python': 0.06; 'string': 0.09; 'subject:string': 0.09; 'python': 0.11; 'expression.': 0.16; 'thanks,': 0.17; 'everyone,': 0.19; 'input': 0.22; 'subject:problem': 0.24; 'skip:" 20': 0.27; 'message-id:@mail.gmail.com': 0.30; 'grouping': 0.31; 'operations.': 0.31; 'regular': 0.32; 'skip:& 30': 0.33; 'subject:with': 0.35; 'problem.': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'list,': 0.38; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'effective': 0.61; 'regards.': 0.65 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lWAg/3XTFsPu+k4luj/M+Xbn4SsSgLZXIlkO4Hs7jfc=; b=uAQ6X5WjC51PrT22bMe+HKec1t1IGbx/fnX+aQu5vh8lrDJXtLkvFVDIopQYEcf/0C keI9Kw+IAiLyA+mmeshg6gj8bro+GkMPK1QsVI4hLqdIdNskGFtcVM/wqxhGSrXFaDby KrsP4C2x3dQUpSnvRkrEpIC8KuHp/SGBixHmjeco44pUmMy6kDomxG8Nee/qf7LkVaOX Yl+zECgB1bloIdXV+piMLNpyth7R6IDuwOwEORuAtKn06NVI4U7qkK9GcfHT61U7CSUl dzZcDj12sROlzu2ohQ1DAefwysSY2TcPDp8PdcIu36q1hrx4RV7Ra0USBgIGffWNP+cF zG3w== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.149.231 with SMTP id ud7mr13131681pab.8.1389911080334; Thu, 16 Jan 2014 14:24:40 -0800 (PST) |
| Date | Fri, 17 Jan 2014 00:24:40 +0200 |
| Subject | Python solve problem with string operation |
| From | Nac Temha <naccttemha@gmail.com> |
| To | python-list@python.org |
| Content-Type | multipart/alternative; boundary=047d7b6d95d0367a3d04f01de490 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5607.1389911083.18130.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1389911083 news.xs4all.nl 2882 [2001:888:2000:d::a6]:47287 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:64109 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi everyone, I want to do operation with chars in the given string. Actually I want to grouping the same chars. For example; input : "344111133311222223377" operation-> (3)(44)(1111)(333)(11)(22222)(33)(77) output: "34131237" How can I do without list, regular expression. just using string operations. Using an effective methods of python for this problem. Thanks, Best regards.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Python solve problem with string operation Nac Temha <naccttemha@gmail.com> - 2014-01-17 00:24 +0200
Re: Python solve problem with string operation John Gordon <gordon@panix.com> - 2014-01-16 22:30 +0000
Re: Python solve problem with string operation Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-16 22:48 +0000
Re: Python solve problem with string operation John Gordon <gordon@panix.com> - 2014-01-16 22:58 +0000
Re: Python solve problem with string operation giacomo boffi <pecore@pascolo.net> - 2014-01-17 01:17 +0100
Re: Python solve problem with string operation giacomo boffi <pecore@pascolo.net> - 2014-01-17 01:38 +0100
Re: Python solve problem with string operation Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-17 00:30 +0000
Re: Python solve problem with string operation "Rhodri James" <rhodri@wildebst.org.uk> - 2014-01-17 01:05 +0000
Re: Python solve problem with string operation Asaf Las <roegltd@gmail.com> - 2014-01-16 17:36 -0800
csiph-web