Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > pl.comp.programming > #33856
| Newsgroups | pl.comp.programming |
|---|---|
| Date | 2020-04-11 03:12 -0700 |
| References | (2 earlier) <35a7e0da-aafd-48be-84e0-dfbc14674e4f@googlegroups.com> <bf7a5c3a-4d6e-4d07-8067-58e3f32a511a@googlegroups.com> <r6s2u1$a7q$1@dont-email.me> <fb261642-c7b9-45c8-bf14-1c6eaa64d578@googlegroups.com> <r6s506$n70$1@dont-email.me> |
| Message-ID | <d470606f-5014-4f86-82d0-e9f356a10308@googlegroups.com> (permalink) |
| Subject | Re: elementarne pytania z pythona |
| From | fir <profesor.fir@gmail.com> |
W dniu sobota, 11 kwietnia 2020 12:09:12 UTC+2 użytkownik Piotr Chamera napisał: > W dniu 2020-04-11 o 11:55, fir pisze: > > ale jak odrzucic kod z tym none > > ten kod chyba dziala ale czy m moze byc none? i czy skipnie to say gdy nie znajdzie wyrazenia? (doucze sie z tego z czasem ale narzie nie che sie w to zbyt wczytywac, cala amsa innych rzeczy nie robi tymczasem problemu ) > > > > mm = re.match(u".*?(:minion ogniem )(\d+)", ircmsg) > > > > m = int(mm.group(2)) > > > > if m : > > say( ogniem_i_mieczem_text[m]) > > say( ogniem_i_mieczem_text[m+1]) > > > > to raczej powinno być tak, bo jak nie dopasuje, > to w mm jest None i nie ma czego zamienić na inta: > > mm = re.match(u".*?(:minion ogniem )(\d+)", ircmsg) > if mm : > m = int(mm.group(2)) > say( ogniem_i_mieczem_text[m]) > say( ogniem_i_mieczem_text[m+1]) ok, a co z tym 0x0a ?
Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-10 03:59 -0700
Re: elementarne pytania z pythona Antoni <0xtrzy@wwpp.pl> - 2020-04-10 16:56 +0200
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-10 09:07 -0700
Re: elementarne pytania z pythona Piotr Chamera <piotr_chamera@poczta.onet.pl> - 2020-04-10 19:33 +0200
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-10 11:35 -0700
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 02:16 -0700
Re: elementarne pytania z pythona Piotr Chamera <piotr_chamera@poczta.onet.pl> - 2020-04-11 11:33 +0200
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 02:55 -0700
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 03:06 -0700
Re: elementarne pytania z pythona Piotr Chamera <piotr_chamera@poczta.onet.pl> - 2020-04-11 12:59 +0200
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 04:04 -0700
Re: elementarne pytania z pythona Piotr Chamera <piotr_chamera@poczta.onet.pl> - 2020-04-11 12:09 +0200
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 03:12 -0700
Re: elementarne pytania z pythona godek.maciek@gmail.com - 2020-04-10 11:47 -0700
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-10 12:07 -0700
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-10 13:32 -0700
Re: elementarne pytania z pythona fir <profesor.fir@gmail.com> - 2020-04-11 02:26 -0700
csiph-web