Python
haohao0626
这个作者很懒,什么都没留下…
展开
-
同名函数 在多个父类中存在 调用哪一个
class person: name='' age=0 __weight=0 def __init__(self, name, age,weight): self.name=name self.age=age self.__weight=weight def speak(self): ...原创 2018-09-30 16:57:07 · 1155 阅读 · 0 评论 -
文本条
#bar.pyimport timescale=66print('begin'.center(scale//2,'-'))start=time.perf_counter()for i in range(scale+1): a='*'*i b="."*(scale-i) c=(i/scale)*100 dur=time.perf_counter()-start print('\...原创 2018-10-12 11:44:37 · 199 阅读 · 0 评论 -
python慕课学习中--pythoninstaller的使用
在打包可执行文件时使用自定义的图标命令:pyinstaller -i pyh.ico -F PythonInitiation.py遇到了这个问题 应该是图标大小的问题 在线图标生成即可...原创 2018-11-01 23:58:50 · 3969 阅读 · 2 评论 -
科赫雪花
·import turtle as t def koch(size,n): if n==0: t.fd(size) else: for angle in [0,60,-120,60]: t.left(angle) koch(size/6,n-1)def main(): t.setup...原创 2018-11-02 20:39:48 · 648 阅读 · 0 评论 -
python笔记
Python 笔记 (从阿利伯数字标号和标题之间 敲回车 标号自动创建 将新的笔记写在第一的位置) 新pip的时候 输入了:python -m pip install --upgrade pip 然后装新的 先删除旧的pip 时间太久 未完成就关闭了窗口 然后scripts文件夹就没有了pip.exe 恢复方法输入:python -m pip install -U...原创 2018-11-02 21:49:26 · 236 阅读 · 0 评论