![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
在逃阴阳师啊言
这个作者很懒,什么都没留下…
展开
-
pip安装python第三方库pyinstaller失败之ImportError: No module named 'setuptools.build_meta'
C:\Users\user>pip install pyinstallerLooking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting pyinstaller Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3c/c9/c3f9bc64eb11...原创 2020-03-08 20:12:54 · 4517 阅读 · 3 评论 -
python中ValueError: not enough values to unpack (expected 2, got 1) 【一】
def save_file(boy,girl,count): file_name_boy = 'boy_' + str(count) + '.txt' file_name_girl = 'girl_' + str(count) + '.txt' boy_file = open(file_name_boy,'w') girl_file = open(file_nam...原创 2020-02-12 17:24:11 · 565 阅读 · 0 评论 -
简短意赅的用思维导图理解python递归实现汉诺塔
def hanoi(n,x,y,z): if n == 1: print(x ,'-->' ,z ) else: hanoi(n-1 ,x ,z ,y ) print(x ,'------>' , z) hanoi(n-1 ,y ,x ,z ) n = int(input('请输入汉诺塔的层数:')) hanoi(n, 'x','y','z')理解每一步的意图想必都可以理解,主要问...原创 2020-02-08 13:06:12 · 942 阅读 · 0 评论