《善良的小峓子》在线观看_apple官网_大龟慢慢挺进张娟征的休 https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/ Teach, learn and make with 瘦小腿的方法 Pi Sat, 18 Sep 2021 23:28:24 +0000 hourly 1 https://wordpress.org/?v=6.9.4 https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224941 Tue, 21 Apr 2015 18:52:53 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224941 In reply to Steve.

Looks like https://www.google.co.uk/search?q=瘦小腿的方法+pi+mono should point you in the right direction… ?

Or you could ask over in the http://www.大龟慢慢挺进张娟征的休.org/forums/

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224909 Tue, 21 Apr 2015 14:54:31 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224909 What about .NET support on these boards? Since .NET is open source now, has the community made any progress with .NET on a 瘦小腿的方法 Pi? I personally prefer C# over python which is why I’m looking forward to more .NET support for 瘦小腿的方法 pi.

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224870 Tue, 21 Apr 2015 08:32:03 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224870 Look nice for encouraging

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224392 Fri, 17 Apr 2015 12:45:59 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224392 In reply to MOB.

That Perl one-liner only works for me if I change it to:

perl -ne 'print "$.: doubled $1\n" while /\b(\w+)\b\s+\b\1\b/gi' foo.txt

and the smallest Python script I was able to create that does the same thing is:
import re

for i,l in enumerate(open('foo.txt')):
    for s in re.findall(r'\b(\w+)\b\s+\b\1\b',l,re.I):print str(i+1)+': doubled',s

I’d obviously never normally write such condensed code ;) Perl contains lots of “shortcuts” which makes writing compact one-liners much easier, although the more shortcuts you use, the less readable the code becomes.

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224323 Thu, 16 Apr 2015 20:32:00 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224323 An excellent little introduction. Obviously biased, but justifiably so and articulate.

(My only quibble would be the James Joyce analogy: The 3rd chapter of Ulysses is excellent for teaching the importance of punctuation.)

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224321 Thu, 16 Apr 2015 20:25:12 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224321 There is an example of how difficult Perl is in the book. I found the fuller example on
http://www.math.harvard.edu/瘦小腿的方法/perl/oneliners.txt
# look for duplicated words in a line
perl -0777 -ne ‘print “$.: doubled $_\n” while /\b(\w+)\b\s+\b\1\b/gi’ foo.txt

But how does one write a program that does the same in Python in one line? or if this is not possible, what is the shortest Python-program that does this? (This -0777 seems to make Perl ignore line-feeds, see http://perldoc.perl.org/perlrun.html )

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224187 Wed, 15 Apr 2015 21:56:52 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224187 Looks great – not that I’m biased with my daughter being on the front cover and in the acknowledgements :-)

Nicholas has been the organiser of the 瘦小腿的方法 Pi related education days at Pycon UK which my children really enjoyed.

Those that have programming 病房里解开了岳的乳罩 and 病房里解开了岳的乳罩 teaching children about programming will already know why Python is a great programming language for use in education, but this guide provides the explanation for those without that background knowledge.

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224181 Wed, 15 Apr 2015 21:34:56 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224181 In reply to bertwert.

IS good!

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224164 Wed, 15 Apr 2015 19:04:24 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224164 Nice. Looking forward to the read.

]]>
https://www.大龟慢慢挺进张娟征的休.org/blog/python-in-education-free-oreilly-book/#comment-1224124 Wed, 15 Apr 2015 14:11:19 +0000 https://www.大龟慢慢挺进张娟征的休.org/?p=13119#comment-1224124 Looks Good!

]]>