- 博客(12)
- 收藏
- 关注
原创 IP格式与int、uint的转换
在项目中调用SDK使用到数字的IP地址,IP地址由4个Byte组成一个4个字节的Int或UInt,如172.168.0.1 在字节中是 最高位是172 次高位是168 次低位是0 最低位是1,以二进制来表述就清楚了,把四个串联成的二进制数字计算出来就是一个UInt 或 Int的数字了。原文链接 /// <summary> /// 将IPv4格式的字符串转换为int型表示 /// </summary> /// <param name="strIP
2021-03-25 13:33:41
934
原创 C# 的 List<> 自定义排序
C# 的 List<> 自定义排序原创链接using System;using System.Collections.Generic;namespace Solution{ class People : IComparable<People> { public People(string name, int age) { Name = name; Age = age; } public string Name { get;
2021-01-03 11:23:35
508
原创 C++中如何记录代码运行时间
#include "time.h"clock_t start, finish;double duration;start = clock();//Here puts your codesfinish = clock();duration = (double)(finish - start) / CLOCKS_PER_SEC;
2020-04-08 12:12:22
458
原创 Git命令
Git 的配置#设置Git用户名git config --gloable user.name "<your-full-name>#设置Git邮箱git config --gloable user.email "your -email-address#确保Git输出内容带有颜色标记git config --global color.ui auto#对比显示原始状态git ...
2019-06-03 16:58:53
175
转载 安装 Anaconda
安装 AnacondaAnaconda 可用于 Windows、Mac OS X 和 Linux。可以在 https://www.anaconda.com/download/ 上找到安装程序和安装说明。如果计算机上已经安装了 Python,这不会有任何影响。实际上,脚本和程序使用的默认 Python 是 Anaconda 附带的 Python。选择 Python 3.6 版本(你也可以根据具...
2019-01-13 10:37:30
287
转载 Anaconda是什么
Anaconda欢迎学习本课程,如何使用 Anaconda 来管理 Python 所用的包和环境。Anaconda 能让你在数据科学的工作中轻松安装经常使用的程序包。你还将使用它创建虚拟环境,以便更轻松地处理多个项目。Anaconda 简化了工作流程,并且解决了多个包和 Python 版本之间遇到的大量问题。Anaconda 实际上是一个软件发行版,它附带了 conda、Python 和 15...
2019-01-13 10:31:49
2731
原创 一些 linux 命令
some commands of Linux1、进入linux环境打开Git Bash 终端,输入vagrant ssh2、输入命令时,当键入一半引号、圆括号、大括号时,需要键入另一半才会返回Shell提示符。3、exit、Ctrl+D:退出Shell.4、Ctrl+C:当进入奇怪状态时,可以查找说明,了解退出并返回Shell。5、curl + 网址:下载这个网页的文件6、ls:列出...
2019-01-12 17:01:46
157
转载 In the VM or out of the VM?
We’ve set this course’s exercises up to work in the virtual machine (VM) that you set up using the vagrant program. If you get logged out of the VM, you may end up typing shell commands in to your reg...
2019-01-12 10:54:09
303
转载 Setting up Your Own(Virtual) Linux Box
Your own Linux boxTo learn the Linux shell, you need a Linux machine to run it on. But we can’t really ship a new Linux computer to every one of you. So instead you will set up a Linux virtual machin...
2019-01-12 09:37:38
220
转载 What's a Virtual Machine
Virtual MachineA virtual machine (VM) is a computer program that simulates a computer. The VM software we’re using in this course is called VirtualBox. When you set up your virtual machine you instal...
2019-01-12 09:01:18
281
原创 request库讲解
request库以下为我整理的requests库使用技巧,仅供参考。import requestsr = requests.get(“http://www.baidu.com”)r.encoding = ‘utf-8’print(r.text)print(r.status_code)我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增...
2018-12-20 12:20:14
2984
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人