上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: # encoding:utf-8 import requests import csv headers = { 'cookie':'device_id=02a63e162n=0035d9dae1eded6e3=1666944669347886', 'User-Agent': 'Mozilla/5.0 阅读全文
posted @ 2022-11-25 15:11 chengxuyonghu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: import time n=0 while n <10: print(n,"删除数据成功") n = n +1 if n == 10: n = 0 time.sleep(5) continue import time n=0 while True: print(n,"删除数据成功") n = n + 阅读全文
posted @ 2022-11-18 17:24 chengxuyonghu 阅读(308) 评论(0) 推荐(0) 编辑
摘要: #1.两个字典的合并 x = {'a': 1, 'b': 2} y = {'c': 3, 'd': 4} x.update(y) print(x) #字典的合并 dct1={'name':'wjh','age':20} dct2={'city':'beijing','areas':'昌平区'} #方 阅读全文
posted @ 2022-11-17 13:52 chengxuyonghu 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 字体颜色 print('\033[1;30m%s\033[0m' %("*" *116)) print('\033[1;31m%s\033[0m' %("*" *116)) print('\033[1;32m%s\033[0m' %("*" *116)) print('\033[1;34m%s\03 阅读全文
posted @ 2022-11-13 11:14 chengxuyonghu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: from datetime import date, timedelta from datetime import date f_date = date(2014, 7, 2) l_date = date(2014, 7, 11) delta = l_date - f_date print(delt 阅读全文
posted @ 2022-10-19 11:32 chengxuyonghu 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: ####################################################################################################### #传统写法 ,主要功能和辅助功能写在一个函数内 ###################### 阅读全文
posted @ 2022-10-12 22:25 chengxuyonghu 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1 居中输出 需要使用center函数 使用center函数,需要str类型的数据。width参数:长度,需要填一个int类型的参数fillchar参数:两边填充的字符,需要一个str类型的参数(可以为空格,但不能为空) S: str = 'one people' print(S.center(10 阅读全文
posted @ 2022-08-30 10:18 chengxuyonghu 阅读(4330) 评论(0) 推荐(0) 编辑
摘要: 如上图所示,字符集是UTF-8,修改字符集的方法如下:修改数据库字符集为:ZHS16GBK查看服务器端字符集SQL > select * from VN L S P A R A M E T E R S T e l n e t 到 服 务 器 , 执 行 : NLS_PARAMETERS 执行:sql 阅读全文
posted @ 2022-06-28 15:13 chengxuyonghu 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 查询当前数据名方法一:select name from v$database;方法二:show parameter db方法三:查看参数文件。 查询当前数据库实例名方法一:select instance_name from v$instance;方法二:show parameter instance 阅读全文
posted @ 2021-09-03 23:22 chengxuyonghu 阅读(7562) 评论(0) 推荐(0) 编辑
摘要: #返回IP地址curl ip.6655.com/ip.aspxcurl whatismyip.akamai.comwget -qO - ifconfig.cocurl icanhazip.comdig +short myip.opendns.com @resolver1.opendns.comcur 阅读全文
posted @ 2021-07-27 18:28 chengxuyonghu 阅读(301) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页
点击右上角即可分享
微信分享提示