![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
J2虾虾
我是开发猿
展开
-
Python基础 - 私有变量
Python没有专门处理私有变量的关键字,所以Python里,规定了以"__"开头的变量,无法在外部直接使用。如下代码:```pythonclassM3U8SubTask(threading.Thread):__finish=False@propertydeffinish(self):returnself.__finishdefrollback(self):self.__finish=Fals...原创 2021-05-08 03:40:03 · 303 阅读 · 0 评论 -
Python入门学习
1.判断语句if True: print("hi,") print("true")else: print("false")这里会打印:hi,true注意:Python的布尔值常量,首字母是大写的。2.多行输出用“\”号来隔开item_one = 1item_two = 2item_three = 3total = item_one...原创 2019-09-05 12:07:00 · 160 阅读 · 0 评论