File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ ignore.ini
77refresh_catalog.py
88refresh_md.sh
99
10- bin /
10+ git-report /
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ categories:
5151- 4 . [ Tips] ( #tips )
5252 - 4.1. [ 通过字符串调用指定函数] ( #通过字符串调用指定函数 )
5353
54- 💠 2024-12-04 16:30:24
54+ 💠 2024-12-19 21:03:00
5555****************************************
5656# Go
5757
@@ -246,6 +246,7 @@ strings 包 提供了常用字符串API
246246### 标准输入输出
247247
248248- 输出 fmt.Print*
249+ - 注意 print() println() 函数是内置函数,输出到 stderr 而不是 stdout
249250- 输入 fmt.Scan*
250251- 打印结构体 ` fmt.Printf("%v\n", object) `
251252
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ categories:
5252 - 3.7.2. [ 时间处理] ( #时间处理 )
5353 - 3.7.3. [ 三方库] ( #三方库 )
5454
55- 💠 2024-12-12 17:45:49
55+ 💠 2024-12-19 21:03:00
5656****************************************
5757# Python
5858> [ Official Site] ( https://www.python.org/ )
@@ -233,14 +233,15 @@ categories:
233233 - ` join('') ` 列表转化成字符串的方法
234234 - ` cmp(str1,str2) ` 比较两个字符串是否相等
235235 - ` + ` 进行拼接 可以拼接字符串 列表
236- - ` a in b ` 判断a是否在b里存在
236+ - ` a in b ` 相当于Java的 b.contains(a)
237237 - ` * ` 重复序列 例如 ` print "-"*20 ` 就会输出20个 -
238238 - ` b = "www.github.com" ` ` c = b.split(".") ` ` "#".join(c) ` 实现了将字符串的 . 换成了#
239239 - ` "i am %s %d" % ("python",67) ` %s %d %f 和C语言一样占位符
240240 - 新的方式 ` "i am {0} {1} ..".format(23,"ret") `
241241 - 或者` "i am {name} {age} ..".format(age=23,name="ret") `
242242 - 字典方式
243243 - ` title() ` 首字母大写
244+ - ` strip() `
244245
245246************************
246247
You can’t perform that action at this time.
0 commit comments