https://github.com/xgqfrms/python
Python27 & Python35
https://github.com/xgqfrms/python
python python27 python3 xgqfrms
Last synced: 3 months ago
JSON representation
Python27 & Python35
- Host: GitHub
- URL: https://github.com/xgqfrms/python
- Owner: xgqfrms
- Created: 2016-04-14T14:00:06.000Z (about 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2023-02-18T12:22:10.000Z (over 3 years ago)
- Last Synced: 2024-04-13T04:54:53.685Z (about 2 years ago)
- Topics: python, python27, python3, xgqfrms
- Language: Python
- Homepage: https://python.xgqfrms.xyz
- Size: 40.6 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 20
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Python playground repo
## `try:` && `except Exception as e:`
```py
try:
# do somthing
except Exception as e:
logging.exception(e)
print 'craw error:' + e
```
```py
# Python 3: Fibonacci series up to n
>>> def fib(n):
>>> a, b = 0, 1
>>> while a < n:
>>> print(a, end=' ')
>>> a, b = b, a+b
>>> print()
>>> fib(1000)
# 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
```
https://www.python.org/
https://www.python.org/users/xgqfrms/