重置上传,新增了多个标准库,开始 TransPyV 自举实验

This commit is contained in:
2026-07-19 11:38:15 +08:00
parent 796222a300
commit 4e66207ba1
1041 changed files with 6597 additions and 27814 deletions

View File

@@ -39,10 +39,9 @@ def strncpy(dest: str, src: str, n: t.CSizeT) -> str:
dest += 1
i += 1
# 填充剩余空间为 '\0'
while i < n:
for i in range(n):
dest[0] = 0
dest += 1
i += 1
return original_dest
@@ -351,4 +350,16 @@ def split(s: str, delim: str, result: t.CArray[str]) -> int:
start[0] = '\0'
start += 1
result[count] = None # 结尾标记
return count
return count
ascii_lowercase: str = "abcdefghijklmnopqrstuvwxyz"
ascii_uppercase: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
ascii_letters: str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
digits: str = "0123456789"
hexdigits: str = "0123456789abcdefABCDEF"
octdigits: str = "01234567"
punctuation: str = "!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~"
whitespace: str = " \t\n\r\f\v"
printable: str = "01234567890123456789abcdefABCDEF01234567!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~ \t\n\r\f\v"