![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
生病的毛毛虫
这个作者很懒,什么都没留下…
展开
-
Python 推导,内含,迭代器
Python语法–推导或内含list comprehension操作可以将一个序列类型的数据集推导出另一个序列类型的数据集:典型的情况:for i in aiterator利用推导获取一个平方数列表square = [i * i for i in range(1, 11)]以上情况同如下循环for i in range(1, 11): square.append(i * i)字典推导语法如下格式:{key_exp:value_exp for key_exp原创 2022-01-11 12:15:48 · 432 阅读 · 0 评论 -
PyThon Debug采坑--提示 module ‘thread‘ has no attribute ‘start_new_thread‘
PyThon DebugC:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_resolver.py:127: SyntaxWarning: "is not" with a literal. Did you mean "!="? if found.get(name) is not 1:pydev debugger: startingConnec原创 2022-01-11 10:54:05 · 1729 阅读 · 0 评论