Why not login to Qiita and try out its useful features?You get articles that match your needsYou can efficiently read back useful informationdark_modeYou can use dark theme
News about the "Invent Your Own Computer Games with Python" book. Welcome to the Code Comments Tutorial for Flippy, an Othello clone. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works. The text in between the triple-double-quotes are comments (technically they are multi-line strings, but Python uses them for multi-line comments).
_your description goes here_Yeah, it's that time again! As usual lots and lots of improvements in this new release including : (almost) complete nullable type support shorthandsfor nullable types (T?) and enumerables (T* instead of IEnumerable[of T]) improved booish behavior with nicer colors (and it should work inside emacs now ) 'else' block for 'for' and 'while loops fixes and improvement relat
Skip to main content close Home aboutnews Our Craft feature animationvisual effectstechnology Our Work reelsbehind the scenes Our Team creativeproductionmanagementtraining/recruiting Join Us job postingsiCAD Contact Us vancouverculver citymontréal Legal Privacy PolicyTerms of UseCA Privacy RightsAd ChoicesCookie Consent ToolYour Privacy Choices software Learn about our Opensource Tools Learn about
Character encoding auto-detection in Python. As smart as your browser. Open source. >>> import urllib >>> urlread = lambda url: urllib.urlopen(url).read() >>> import chardet >>> chardet.detect(urlread("http://google.cn/")) {'encoding': 'GB2312', 'confidence': 0.99} >>> chardet.detect(urlread("http://yahoo.co.jp/")) {'encoding': 'EUC-JP', 'confidence': 0.99} >>> chardet.detect(urlread("http://amazo
「往年の名作「スーパーマリオブラザーズ」、あの濃い内容でわずか40キロバイト」に載っていたわずか565バイトのテトリス。文字数にして551文字。79文字*7行のプログラミングで、テトリスが動きます。 以下のソースコードをメモ帳に貼り付けて、htmlで保存すればテトリスが動きます。 <body onKeyDown=K=event.keyCode><script>X=[Z=[B=A=12]];h=e=K=t=P=0;function Y() {C=[d=K-38];c=0;for(i=4;i--*K;K-13?c+=!Z[h+p+d]:c-=!Z[h+(C[i]=p*A-Math.round(p/ A)*145)])p=B[i];!t|c+4?c-4?0:h+=d:B=C;for(f=K=i=0;i<4;f+=Z[A+p])X[p=h+B[i++]]=1 if(e=!e){if(f|B){fo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く