파이썬에서 한글쓰기(python write hangul)

| 145 Comments | No TrackBacks
아래와 같은 에러가 발생한다면

artist@debian:~/myproject$ python getBookContent.py
  File "getBookContent.py", line 20
SyntaxError: Non-ASCII character '\xb5' in file getBookContent.py on line 20, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details


맨 윗줄에 아래와 같이 표기 하면 된다.

#!/usr/bin/env python
# -*- coding: cp949 -*-

from mechanize import Browser

그러면 소스내에 한글을 사용할 수 있다.

No TrackBacks

TrackBack URL: http://www.thethinkings.com/mt/mt-tb.cgi/39

145 Comments

Interesting thoughts here. I appreciate you taking the time to share them with us all. It's people like you that make my day :)

I must say, as much as I enjoyed reading what you had to say, I couldnt help but lose interest after a while. Its as if you had a great grasp on the subject matter, but you forgot to include your readers. Perhaps you should think about this from more than one angle. Or maybe you shouldnt generalise so much. Its better if you think about what others may have to say instead of just going for a gut reaction to the subject. Think about adjusting your own thought process and giving others who may read this the benefit of the doubt.

Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy.

Hi,thanks for the great quality of your blog, each time i come here, i m amazed.

Very interesting post. Your own web site is swiftly turning out to be certainly one of my favorites.

It's an interesting view for sure and I appreciate it so this is a little something for all...

You do not need a parachute to skydive. You only need a parachute to skydive twice.

I love the writing relevancy of your site and it will a attractive decent work of presenting the info.

Nice!! Great Ifo. Great People. Great Blog. Thank you for all the great sharing that is being done here.

Can I just answer what a elimination to come across superstar who really understands what theyre talking about on the the web. You absolutely recognize how toward transport an concern to light and build it significant. More community need to study this and realize this side of the story. I cant consider youre not more fashionable because you positively have the gift.

I realise this isn't a very good comment but it made me smile!

I still miss my ex. But my aim is getting better.

What a relief to determine a article that may perhaps be real at last really importance reading! I’ve been looking for all-around regarding this topic except men and women now put junk posts, or short meaningless posts. I contain observed a couple vids on youtube but it’s now the same as reading a good post.

Took me moment to look at every one of of the commentary, except I in reality loved the editorial. It proved being actually cooperative to me and I am constructive to all the commenters here! It’s generally pleasant when you be able to not just be informed, but in adding entertained! I am helpful you had pleasant writing this write-up.

I like this data shown and it has given me some sort of desire to succeed for some reason, so thanks.

I like the writing relevancy of your website and it does a pretty decent work of presenting the info.

Took me moment in time toward study each and every one of the comments, other than I in actuality enjoyed the editorial. It proved being in reality obliging to me with I am positive to every the commenters here! It’s normally polite whenever you be able to not just be informed, but in addition entertained! I am constructive you had pleasing writing this write-up.

Can I just say what a release toward come across a star who really is familiar with what theyre discussion regarding on the world wide web. You absolutely know how toward bring an subject to light plus build it significant. Additional community must to study this and recognize this side of the story. I cant believe youre not extra popular since you positively contain the gift.

Can I just answer what a relief en route for find a star who in fact is familiar with what theyre discussion regarding on the web. You definitely identify how toward transport an subject to glow and build it significant. Additional people call for to study this plus recognize this side of the narrative. I cant consider youre not extra fashionable since you certainly have the gift.

Appreciate it for this post, I am a big fan of this internet site would like to keep updated.

I have to admit that i sometimes get bored to read the whole thing but i think you can add some value. Grats !

This actually answered my downside, thank you!

Awsome blog! I am loving it!! Will be back later to read some more. I am bookmarking your feeds also

Livestrong keeps me going. It's hope that powers people.

I used to be more than happy to find this internet-site.I needed to thanks in your time for this wonderful read!! I definitely having fun with each little little bit of it and I've you bookmarked to take a look at new stuff you weblog post.

It will always be stimulating to read content from other writers and practice a little something from their store.

I personally suggest Hostgator for webhosting. They are really professional, support staff is perfect and uptime very good. Go to hostgator_dot_com and use "onecentcoupons" voucher code. You get first month just free which is great.

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

If you're still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you'll know which is right for you.

I just wake up from nap and I'm already reading your post. It means something! Really useful info. Thanks!

Good luck everybody! - I will come back again. Are you on facebook or twitter? Will like to follow you.

Regards!

Hey there, I just wanted to introduce myself. My name is Alan & I wanted to let you know that your site is excellent! I'm a frequent reader actually and I think it is so great, that I've actually gone ahead and linked to your site (and yes, it is a Do-Follow link) from my website here : http://www.MalepenisEnlargementpills.com/siteswelike.php anyways, you can see the link there & kudos to you for having such a wonderful site!

Hey there, I just wanted to introduce myself. My name is Alan & I wanted to let you know that your site is excellent! I'm a frequent reader actually and I think it is so great, that I've actually gone ahead and linked to your site (and yes, it is a Do-Follow link) from my website here : http://www.MalepenisEnlargementpills.com/siteswelike.php anyways, you can see the link there & kudos to you for having such a wonderful site!

All of the Breast Actives ingredients shows why this is actually the number 1 promoting over-the-counter bust line improvement method available on the market. All natural natural elements tend to be why is this breast enhancement product very popular among its customers. Using a mix of herbal treatments, vitamins, and also mineral deposits, this breast enlargement uses the best components to market breast development and tone.

I think this is one of the most important info for me. And i'm glad reading your article. But want to remark on some general things, The site style is perfect, the articles is really excellent : D. Good job, cheers

I went over this website and I believe you have a lot of superb information, saved to favorites (:.

just as expected, you have a wonderful article here. i will definitely subscribed on your feeds. keep on posting my friend. singapore dental clinics

Very nice style and fantastic content , hardly anything else we require : D.

I've study few of the web sites in your web site since yesterday, and I really much like your type of blogging and site-building. I book marked the idea for you to my top features site listing and will be examining back soon. Please visit my personal site furthermore along with inform me your current view.

We've read few of the websites on the site considering that last night, and that i genuinely such as your kind of blogging and site-building. I bookmarked it in order to my top picks web page record and will also be checking out back again shortly. Check out my own internet site furthermore and also make me aware your view.

Saved as a favorite, I enjoy your website!

I'm not really much of a online reader in all honesty however your sites great, keep it up! I'll go on and bookmark your internet site another afterwards. Take care

Way cool, some valid points! I appreciate you thus, making this article available, the remainder of the site is usually high quality. Possess a fun.

olá amigos, com certeza enviar um torpedo de graça está cada vez mais custoso devido ao bloqueio das operadoras de telefone. Há ainda os serviços que prometem entregar meu torpedo mas nem sempre chegam destinatário final. Alguns como o Mundo oi e o Oi Torpedo funcionam mas e para as outras operadoras? E os que prometem que enviam e nada chega. Para onde está indo as meus SMS? E para a Tim, Vivo? Alguma Idéia? Ou significa ter de comprar?. É só um desabafo, realmente está difícil achar serviços para mandar SMS barato.

hmm.. Very thorough post. I have found myself directed here before from aol search and undoubtedly will find myself here again. I just thought I’d take a minute out of my day to express. As a website owner myself I know that is is nice to get some feedback on your works sometimes. Anyway, I’m sure I’ll end

Man! It is like you read my mind! You seem to know a lot about this, just like you wrote the book in it or something. I think that you could do with some pictures to drive the content home a bit, besides that, this is helpful blog. A good read. I’ll definitely return again.

Man! It is like you read my mind! You seem to know a lot about this, just like you wrote the book in it or something. I think that you could do with some pictures to drive the content home a bit, besides that, this is helpful blog. A good read. I’ll definitely return again.

I seen your blog using google and I must say, this is probably one of the best well prepared articles I have come across in a long time. I have bookmarked your site for more posts.

I have a problem with the overall premise of your post but I still think its really informative. I still really like your writing style. Keep up the good work.

Kudos for posting such a useful weblog. Your weblog isn’t only informative and also extremely artistic too. There usually are very couple of individuals who can write not so simple articles that creatively. Keep up the good work !!

I am on the 1st day of a auto detox diet plan. I haven’t had a activity to eat all day and I’m STARVING!! I cannot accede how individuals say that they did not feel ardent bold this. I’m aswell a bit bloodless and all-a-quiver and like I said, this is abandoned the anterior day. I’m not a abounding abandoned or huge eater either. I’m not complete how broadcast I wil last. At the ability of the day I am appetite myself which can’t be an able thing. I’ll try to stick at it though, I’m just avaricious that the blackout and weakness is traveling to carelessness or I will not acquire the adeptness to administer on my plan on Monday.

I appreciate you for your sensible assess. Everyone & my neighbor had been getting ready to do your homework about that. We ended up a superb guide on that issue through our community catalogue and quite a few books when not as influensive since your information. I will be really pleased to check out similarly info i was browsing for a long period.This produced really delighted

Leave a comment