xiaobin_hlj80

https://blog.csdn.net/xiaobin_HLJ80 http://blog.chinaunix.net/uid/31552151.html

导航

2026年2月3日

跟我学python(5)- 匹配数字

摘要: 读取输入的字符串,是否是数字; 转换为浮点数并输出。 raw_input input([prompt]) re.match re.match(pattern, string, flags=0) 类型转换 (1)字符串转浮点 float(x) (2)数字转字符串 str(x) 代码 #coding=u 阅读全文

posted @ 2026-02-03 16:08 xiaobin80 阅读(2) 评论(0) 推荐(0)

跟我学python(4)- 正则

摘要: 1. 引入模块 import re 2. 使用foreach循环 for iterating_var in sequence: statements(s) 1) 名称解释 -(1)list(列表) 可以理解为java的数组和列表的综合体。 3. 使用模块 1)sub方法 替换符合正则要求的字符串。 阅读全文

posted @ 2026-02-03 15:51 xiaobin80 阅读(0) 评论(0) 推荐(0)

跟我学python(3)--- 带shell功能的hello world

摘要: 1. 引入模块 import os 2. 使用判断 if expression : statement1 else : statement2 3. 使用模块 使用模块中的变量 os.name 使用模块中方法 os.system() 4. code helloworld.py: ''' Created 阅读全文

posted @ 2026-02-03 15:22 xiaobin80 阅读(2) 评论(0) 推荐(0)

跟我学python(2)- 第一个程序

摘要: 1. Create project New->Other project name: hellopython 2. Create Source Folder New->Other source name: src 1) properties Project->properties remove pr 阅读全文

posted @ 2026-02-03 14:53 xiaobin80 阅读(2) 评论(0) 推荐(0)

跟我学python --- 搭建开发平台

摘要: 一、python环境 PyDev v13.1.0 Py 3.8+ 1. 版本 Python 版本 OS(开发者) v3.9+ Win8.1+ v3.8.10 Win7+ v2.7.18 WinXP+ 安装时,请勾选“Add python.exe to PATH” 二、配置IDE minimum Ja 阅读全文

posted @ 2026-02-03 14:04 xiaobin80 阅读(1) 评论(0) 推荐(0)

2026年1月21日

MSVCRT vs UCRT

摘要: These are two variants of the C standard library on Microsoft Windows. MSVCRT MSVCRT (Microsoft Visual C++ Runtime) is available by default on all Mic 阅读全文

posted @ 2026-01-21 04:45 xiaobin80 阅读(4) 评论(0) 推荐(0)

2026年1月2日

Debian server 安装

摘要: 第1步 第2步 第3步 第4步 第5步 第6步 第7步 第8步 第9步 第10步 第11步 第12步 阅读全文

posted @ 2026-01-02 13:59 xiaobin80 阅读(7) 评论(0) 推荐(0)

2025年12月30日

debian 与 ubuntu 之 - sudo

摘要: sudo.d(directory): Note also, that becasuse sudoers contents can vary widely, no attempt is made to add this directive to existing sudoers files on up 阅读全文

posted @ 2025-12-30 13:29 xiaobin80 阅读(5) 评论(0) 推荐(0)

2025年12月6日

What are the correct version numbers for C#?

摘要: C# 2.0 released with .NET 2.0 and VS2005 (November 2005). Major new features: generics, anonymous methods, nullable types, and iterator blocks C# 3.0 阅读全文

posted @ 2025-12-06 14:19 xiaobin80 阅读(216) 评论(0) 推荐(0)

2025年11月4日

计算文件CRC32数值

摘要: 我们经常要计算文件的CRC32值。 经常用的工具为:HashCalc fstream 使用方法: 1.打开文件 open(const char* filename, ios_base::openmode mode = ios_base::in | ios_base::out) 2.定位文件(读) s 阅读全文

posted @ 2025-11-04 20:20 xiaobin80 阅读(16) 评论(0) 推荐(0)