05 2020 档案
ubuntu---mysql-python-git
摘要:ubuntu使用过程中遇到的指令 python 1.显示使用的哪个python which python3 $ /usr/bin/python3 # 显示具体信息 ls /usr/bin/python3 -l $ lrwxrwxrwx 1 root root 10 7月 5 17:27 /usr/b
阅读全文
列表、元组、字典、字符串、集合
摘要:LIST 列表 1、判断列表是否为空 Python中判断list是否为空有以下两种方式: # way1 list_temp = [] if len(list_temp): # 存在值即为真,返回的是列表的元素个数; else: # list_temp是空的 # way2 list_temp = []
阅读全文