-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
77 lines (62 loc) · 2.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=640">
<link rel="stylesheet" href="stylesheets/core.css" media="screen">
<link rel="stylesheet" href="stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)">
<link rel="stylesheet" href="stylesheets/github-light.css">
<script type="text/javascript" src="javascripts/modernizr.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/headsmart.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#main_content').headsmart()
})
</script>
<title>Python by xgqfrms</title>
</head>
<body>
<a id="forkme_banner" href="https://github.com/xgqfrms/Python">View on GitHub</a>
<div class="shell">
<header>
<span class="ribbon-outer">
<span class="ribbon-inner">
<h1>Python</h1>
<h2>Python27 & Python35</h2>
</span>
<span class="left-tail"></span>
<span class="right-tail"></span>
</span>
</header>
<section id="downloads">
<span class="inner">
<a href="https://github.com/xgqfrms/Python/zipball/master" class="zip"><em>download</em> .ZIP</a><a href="https://github.com/xgqfrms/Python/tarball/master" class="tgz"><em>download</em> .TGZ</a>
</span>
</section>
<span class="banner-fix"></span>
<section id="main_content">
<h1>
<a id="python-playground-repo" class="anchor" href="#python-playground-repo" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Python playground repo</h1>
<h2>
<a id="try--except-exception-as-e" class="anchor" href="#try--except-exception-as-e" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>try: && except Exception as e:</h2>
<div class="highlight highlight-source-python"><pre> <span class="pl-k">try</span>:
<span class="pl-c"># do somthing</span>
<span class="pl-k">except</span> <span class="pl-c1">Exception</span> <span class="pl-k">as</span> e:
logging.exception(e)
<span class="pl-c1">print</span> <span class="pl-s"><span class="pl-pds">'</span>craw error:<span class="pl-pds">'</span></span> <span class="pl-k">+</span> e</pre></div>
</section>
<footer>
<span class="ribbon-outer">
<span class="ribbon-inner">
<p>this project by <a href="https://github.com/xgqfrms">xgqfrms</a> can be found on <a href="https://github.com/xgqfrms/Python">GitHub</a></p>
</span>
<span class="left-tail"></span>
<span class="right-tail"></span>
</span>
<p>copyright © 2017 xgqfrms</span>
</footer>
</div>
</body>
</html>