会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
48
49
50
51
52
53
54
55
56
···
186
下一页
2023年3月16日
python sha256加密
摘要: 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
阅读(212)
评论(0)
推荐(0)
2023年3月15日
STATA: _n _N 应用 理解排序?
摘要: 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
阅读(213)
评论(0)
推荐(0)
STATA:数据手工输入 保存 填充 循环
摘要: clear input ID year var1 var2 var3 1 2006 34 45 65 1 2007 45 43 41 1 2007 3 56 59 1 2008 39 54 76 1 2009 41 57 68 end save "data00.dta", replace use "
阅读全文
posted @ 2023-03-15 10:14 myrj
阅读(129)
评论(0)
推荐(0)
STATA:缺失值
摘要: stata 统计每行各个变量共有几个是缺失值: //增加新变量miss,统计当前行观测值有几个缺失值 egen miss=rowmiss(_all)
阅读全文
posted @ 2023-03-15 08:08 myrj
阅读(456)
评论(0)
推荐(0)
stata:tab命令举例
摘要: webuse hbp2, clear //不显示值标签,只显示实际保存值 tab race ,nolabel // // Race | Freq. Percent Cum. // + // 1 | 196 17.41 17.41 // 2 | 773 68.65 86.06 // 3 | 157 1
阅读全文
posted @ 2023-03-15 05:56 myrj
阅读(1518)
评论(0)
推荐(0)
2023年3月14日
C语言:%5.2f 含义
摘要: #include <stdio.h> main() { float a=-3.14153265; printf("%8.4f\n",a) ; printf("%7.4f\n",a) ; printf("%6.4f\n",a) ; printf("%5.4f\n",a) ; printf("%4.4f
阅读全文
posted @ 2023-03-14 20:41 myrj
阅读(650)
评论(0)
推荐(0)
2023年3月13日
C语言:整数赋值给字符型变量
摘要: #include <stdio.h> //整数赋值给字符型变量 //353转2进制:1 01100001 =256 64 32 1 353-256=97 main() { int n=353; char c; c=n; printf("%c %d %x",c,c,c); getchar(); }
阅读全文
posted @ 2023-03-13 21:43 myrj
阅读(231)
评论(0)
推荐(0)
stata:分类排序与求和
摘要: . bysort rep78: gen ab=_n . order ab,after(rep78) . bysort rep78: gen abb=sum(rep78) . order abb,after(rep78)
阅读全文
posted @ 2023-03-13 20:59 myrj
阅读(613)
评论(0)
推荐(0)
STATA: 系统路径 ssc path应用
摘要: //1.显示stata的系统路径 . sysdir STATA: D:\Stata17\ //stata软件的安装位置 BASE: D:\Stata17\ado\base\ //stata官方的命令及说明帮助文件 SITE: D:\Stata17\ado\site\ PLUS: C:\Users\z
阅读全文
posted @ 2023-03-13 10:57 myrj
阅读(2743)
评论(1)
推荐(0)
2023年3月12日
WINXP:Reboot and Select proper Boot deviceor Insert Boot Media in selected Boot device and press a
摘要: 问题描述: 用能启动的光盘安装GHOST WINXP,安装正常,但启动时拿出光盘则不能启动,插入光盘选择从H 从硬盘启动,可正常。将启动顺序改为直接从硬盘启动则提示: Reboot and Select proper Boot deviceor Insert Boot Media in select
阅读全文
posted @ 2023-03-12 05:20 myrj
阅读(971)
评论(0)
推荐(0)
上一页
1
···
48
49
50
51
52
53
54
55
56
···
186
下一页
公告