nodejs 两种运行方式 一.命令行方式REPL 1.打开cmd - 输入node - 输入要打印的东西:console.log("hello world"); - 即可看到打印出hello world 2.REPL -read eval print loop :读取屏幕中输入的代码、执行代码、打 Read More
posted @ 2020-09-07 15:02 菜鸟要飞~ Views(253) Comments(0) Diggs(0) Edit
一、项目下虚拟环境下载pyinstaller.exe 打包 1.检查是否下载 pyinstaller: 如果没有在vscode终端输入:pip3 install pyinstaller 安装成功后下一步 2.在终端输入打包命令: pyinstaller -F test.py 打包成功后下一步 3.项 Read More
posted @ 2020-09-03 16:57 菜鸟要飞~ Views(3327) Comments(0) Diggs(0) Edit
更换到国内清华园 C盘-User-用户名-新建“pip”文件夹-新建“pip.ini”文件 pip.ini 文件中内容: [global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple Read More
posted @ 2020-09-03 16:50 菜鸟要飞~ Views(3167) Comments(0) Diggs(0) Edit
python操作sqlite3数据库主要包含以下几步: 导入模块、连接数据库、创建游标、建表、操作(增删改查)、关闭游标、关闭数据库 1.导入模块: import sqlite3 2.连接数据库(如果数据库不存在会创建数据库): conn = sqlite3.connect("D:\\test.db Read More
posted @ 2020-09-03 15:16 菜鸟要飞~ Views(1667) Comments(0) Diggs(0) Edit
MongoDB -非关系型数据库 MongoDB数据库介绍 面向文档的数据库 {"foo":3,"greeting":"Hello World!"} mongodb的数据是存储在硬盘上的,只不过需要经常读取的数据会被加载到内存中,这样提高查询效率,所谓内存数据映射,所以mongodb本身很吃内存。 Read More
posted @ 2020-08-27 11:34 菜鸟要飞~ Views(394) Comments(0) Diggs(0) Edit
txt文件 生成并下载txt文件: @app.route('/download', methods=['GET']) def download(): content = "long text" response = make_response(content) response.headers["C Read More
posted @ 2020-08-17 16:08 菜鸟要飞~ Views(1318) Comments(0) Diggs(0) Edit
步骤: 1.新建MFC APPLICATION ,编辑框等等; 2.将SQlite3中的文件添加进文件夹,并将cppsqlite3U.h,sqlite3.h添加头文件列表中,将cppsqlite3U.cpp放入cpp文件列表中; 3.在stdafx.h中包含cppsqlite3U.h,sqlite3 Read More
posted @ 2020-08-11 17:23 菜鸟要飞~ Views(1699) Comments(0) Diggs(0) Edit
属性页-》c/c++-》预处理器-》预处理器定义-》_CRT_NONSTDC_NO_DEPRECATE Read More
posted @ 2020-08-11 17:01 菜鸟要飞~ Views(447) Comments(0) Diggs(0) Edit
读取txt文件中的内容放如cstring变量中 读取txt文件中一行数据 CString filePath; CStdioFile file; //打开文件 if(!file.Open(filePath,CFile::modeRead)) { ::AfxMessageBox(_T("文件打开失败!" Read More
posted @ 2018-12-03 16:04 菜鸟要飞~ Views(708) Comments(0) Diggs(0) Edit