##Python 3.5
- ASYNC, AWAIT
- single thread
- event loop
- taskqueue celery == asyncio
- It's just a hint, a comment, let your code be self-documenting.
| for i in range(1001): | |
| for j in range(i, 1001): | |
| for k in range(1001): | |
| tmp1 = i ** 2 + j ** 2 | |
| tmp2 = k ** 2 | |
| if tmp1 == tmp2: | |
| print(i, j, k) | |
| elif tmp2 > tmp1: | |
| break |
| #!/bin/bash | |
| # tty_pipe=$(tty) | |
| # echo "\$tty_pipe = $tty_pipe" | |
| [ -z "$USER" ] && echo -ne "User: " && read USER | |
| [ -z "$PASS" ] && echo -ne "Password: " && read -s PASS | |
| function autoptt() | |
| { |
| 2015-09-23 14:11:18 +0800 | |
| ../configure | |
| --build=x86_64-apple-darwin14.5.0 | |
| --prefix=/usr/local/Cellar/gcc/5.2.0 | |
| --libdir=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5 | |
| --enable-languages=c,c++,objc,obj-c++,fortran | |
| --program-suffix=-5 | |
| --with-gmp=/usr/local/opt/gmp | |
| --with-mpfr=/usr/local/opt/mpfr |