上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 188 下一页
摘要: . export excel using "D:\statashu\221.xls", firstrow(variables) nolabel //将当前表导出为xls,第一行作为标题,没有值标签 //导入xls,第一行作为变量名 import excel "D:\statashu\221.xls" 阅读全文
posted @ 2023-03-19 20:48 myrj 阅读(695) 评论(0) 推荐(0)
摘要: 下载https://github.com/mli/autocut 解压缩:pip install git+https://github.com/mli/autocut.git D:\c-理论\tool\autocut-main\autocut-main> python setup.py instal 阅读全文
posted @ 2023-03-19 20:26 myrj 阅读(190) 评论(0) 推荐(0)
摘要: import pandas as pd df=pd.read_excel('bb.xlsx') column = list(df.columns) for i in range(0, len(df)): print(df.iloc[i][column[0]],df.iloc[i][column[1] 阅读全文
posted @ 2023-03-19 14:57 myrj 阅读(923) 评论(0) 推荐(0)
摘要: import pandas as pd file=pd.read_excel('bb.xlsx') column = list(file.columns) for i in range(len(file)): x = [file.iloc[i][x] for x in range(len(colum 阅读全文
posted @ 2023-03-19 14:45 myrj 阅读(178) 评论(0) 推荐(0)
摘要: import pdfplumber import pandas as pd from PIL import Image pdf = pdfplumber.open("xue1.pdf") #Load page_0 p0 = pdf.pages[0] table = p0.extract_table( 阅读全文
posted @ 2023-03-19 12:13 myrj 阅读(34) 评论(0) 推荐(0)
摘要: * 加载一个Stata数据集 sysuse auto * 在Stata中执行Python代码 python: import pandas as pd import pymysql import stata_setup stata_setup.config("c:\python37\python.ex 阅读全文
posted @ 2023-03-19 07:27 myrj 阅读(73) 评论(0) 推荐(0)
摘要: //stata调用python,引用py文件中的函数 //stata中设置python路径 set python_exec d:\python37\python.exe //stata中调用python python //引入函数 from myfunction1 import add_number 阅读全文
posted @ 2023-03-18 10:35 myrj 阅读(298) 评论(0) 推荐(0)
摘要: MD5是一种不可逆的哈希算法,这意味着您不能直接从MD5哈希值“解密”出原始数据。然而,您可以尝试使用暴力破解或查找表(如彩虹表)来猜测原始数据。 暴力破解是一种尝试所有可能的输入组合,直到找到与给定哈希值匹配的输入的方法。这种方法在密码空间较小的情况下可能有效,但在密码空间较大的情况下可能非常耗时 阅读全文
posted @ 2023-03-17 18:27 myrj 阅读(3269) 评论(0) 推荐(0)
摘要: import hashlib def sha256_encrypt(data): sha256 = hashlib.sha256() sha256.update(data.encode('utf-8')) return sha256.hexdigest() data = "Hello, world! 阅读全文
posted @ 2023-03-16 22:17 myrj 阅读(216) 评论(0) 推荐(0)
摘要: webuse dollhill2, clear gen n = _n gen N = _N 如果想要统计各个不同的年龄段中共多少人吸烟: by age (smokes), sort: generate wgta=pyears[_N] . by age (smokes), sort: generate 阅读全文
posted @ 2023-03-15 15:51 myrj 阅读(233) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 188 下一页