摘要:
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import datetime import time #时间戳 ticks=time.time() print(ticks) #结构体时间{tm_year...} localtime=time.localtime 阅读全文
posted @ 2023-11-21 23:31
ho966
阅读(21)
评论(0)
推荐(0)
摘要:
字典,类似json #!/usr/bin/python3 # -*- coding: UTF-8 -*- import json data={'name':'abc', 'age':{'zhousui':7, 'xusui':8}, 'class': 'first'} print(data) str 阅读全文
posted @ 2023-11-21 23:13
ho966
阅读(7)
评论(0)
推荐(0)
摘要:
集合即有序set #!/usr/bin/python3 # -*- coding: UTF-8 -*- data=set() data.add("bcd") data.add("abc") # 添加元素 print(data) data.discard("ab") data.discard("abc 阅读全文
posted @ 2023-11-21 23:04
ho966
阅读(18)
评论(0)
推荐(0)
摘要:
1、 yum install epel-release 2、 python3 执行 yum install python3-pip / python2 执行 yum install python-pip 3、 查看版本pip3 --version 4、 安装成功后, 如果想安装requests, 就 阅读全文
posted @ 2023-11-21 22:21
ho966
阅读(1576)
评论(0)
推荐(0)