1 Star 0 Fork 0

herolin12/python3-in-one-pic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Highlight.html 1003 Bytes
一键复制 编辑 原始数据 按行查看 历史
rainyear 提交于 2016-02-05 14:20 . update Highlight
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ACE in Action</title>
<link href="http://cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github-gist.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/highlight.js/9.1.0/highlight.min.js"></script>
<script src="//cdn.bootcss.com/highlight.js/9.1.0/languages/python.min.js"></script>
</head>
<body>
<pre><code class="python">
class Animal:
"""This is an Animal"""
def __init__(self, can_fly = False):
self.can_fly = can_fly
def fly(self):
if self.can_fly:
print("I CAN fly!")
else:
print("I can not fly!")
class Dog(Animal):
"""This is a Dog"""
def bark(self):
print("Woof!")
d = Dog()
d.fly() # I can not fly!
d.bark() # Woof!
</code></pre>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/herolin12/python3-in-one-pic.git
git@gitee.com:herolin12/python3-in-one-pic.git
herolin12
python3-in-one-pic
python3-in-one-pic
master

搜索帮助