摘要: local sj=subinstr(subinstr("`c(current_time)'",":","",.)," ","",.) local wjma="`sj'" set seed `wjma' clear local shu= int(100*runiform() ) // local xm 阅读全文
posted @ 2023-03-07 21:06 myrj 阅读(30) 评论(0) 推荐(0) 编辑
摘要: // plural(n,s) // // 用法:为字符串加s变为复数,当n的取值不是+/-1时,就在s后添加后缀"s";当n的取值是+/-1时,就在s后不加后缀"s" //n为1,不加s . disp plural(1,"banana") banana //n为2,加s . disp plural( 阅读全文
posted @ 2023-03-07 20:59 myrj 阅读(61) 评论(0) 推荐(0) 编辑
摘要: indexnot函数分析与详例解析 //indexnot(s1,s2)以单个字符判断为依据,结果是在s1中的位置表示; //indexnot(s1,s2) 返回s1中第一个在s2中找不到的字母的位置,若s1所有的字母在s2中均可以找到,则返回0 //字符a在第二个串中包含,而b不包含,b的位置是2, 阅读全文
posted @ 2023-03-07 20:03 myrj 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Python 调用 js 文件,报 execjs._exceptions.ProgramError: SyntaxError: 缺少 ';' 错误 原因:execjs 默认使用了windows的JScript 引擎导致的,我们可以在python命令行中查看 import execjs execjs. 阅读全文
posted @ 2023-03-07 09:21 myrj 阅读(5007) 评论(0) 推荐(0) 编辑
摘要: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyexecjs import execjs 阅读全文
posted @ 2023-03-07 06:55 myrj 阅读(50) 评论(0) 推荐(0) 编辑