上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 184 下一页
摘要: import pandas as pd from pandas.io.stata import StataReader, StataWriter file="cfps2020famconf_202301.dta" stata_data = StataReader(file, convert_cate 阅读全文
posted @ 2023-03-04 11:34 myrj 阅读(88) 评论(0) 推荐(0)
摘要: import pandas as pd data = pd.read_stata('cfps2020famconf_202301.dta') data.to_stata('output_file.dta') data.to_stata('output_file.dta', version=12) # 阅读全文
posted @ 2023-03-04 11:15 myrj 阅读(260) 评论(0) 推荐(0)
摘要: from Crypto.Cipher import PKCS1_v1_5 as PKCS1_cipher ModuleNotFoundError: No module named 'Crypto' 解决方法: pip install pycryptodome 阅读全文
posted @ 2023-03-04 09:15 myrj 阅读(1246) 评论(0) 推荐(0)
摘要: //建立新变量vv,其值:trunk只能为11或17,mpg可以从18-30间时为1,其他为0 gen vv=inlist(trunk,11,17)&inrange(mpg,18,30) //建立新变量vva,其值:trunk为11-17,mpg可以从18-30间时为1,其他为0 gen vva=i 阅读全文
posted @ 2023-03-04 08:40 myrj 阅读(389) 评论(0) 推荐(0)
摘要: sysuse auto,clear //遍历显示所有变量名 foreach v of varlist _all { dis "`v'" } //显示当前记录各个变量的值 foreach v of varlist _all { dis `v' } //ds显示所有变量名,只有变量名 ds foreac 阅读全文
posted @ 2023-03-04 08:38 myrj 阅读(1514) 评论(0) 推荐(0)
摘要: local varsa rep78 headroom trunk weight length turn displacement gear_ratio foreign local nv=10 foreach var of local varsa{ rename `var' `var'`nv' } / 阅读全文
posted @ 2023-03-04 07:27 myrj 阅读(925) 评论(0) 推荐(0)
摘要: #include <stdio.h> //题目:某个公司采用公用电话传递数据,数据是四位的整数,在传递过程中是加密的,加密规则如下:每位数字都加上5,然后用和除以10的余数代替该数字,再将第一位和第四位交换,第二位和第三位交换。 //1.程序分析: //2.程序源代码: main() { int a 阅读全文
posted @ 2023-02-28 06:02 myrj 阅读(281) 评论(0) 推荐(0)
摘要: #include <stdio.h> //题目:一个偶数总能表示为两个素数之和。 //1.程序分析: //2.程序源代码: #include "stdio.h" #include "math.h" main() { int a,b,c,d; scanf("%d",&a); for(b=3;b<=a/ 阅读全文
posted @ 2023-02-28 05:56 myrj 阅读(411) 评论(0) 推荐(0)
摘要: #include <stdio.h> //题目:求0-7所能组成的奇数个数。 //1.程序分析: //2.程序源代码: main() { long sum=4,s=4; int j; for(j=2;j<=8;j++)/*j is place of number*/ { printf("\n%ld" 阅读全文
posted @ 2023-02-28 05:53 myrj 阅读(219) 评论(0) 推荐(0)
摘要: #include <stdio.h> //题目:海滩上有一堆桃子,五只猴子来分。第一只猴子把这堆桃子凭据分为五份,多了一个,这只猴子把多的一个扔入海中,拿走了一份。第二只猴子把剩下的桃子又平均分成五份,又多了一个, //它同样把多的一个扔入海中,拿走了一份,第三、第四、第五只猴子都是这样做的,问海滩 阅读全文
posted @ 2023-02-28 05:46 myrj 阅读(294) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 184 下一页