The user is banned, and the content is hidden.
Tofloor
poster avatar
attention
deepin
2020-10-09 02:56
Author
The user is banned, and the content is hidden.
Reply Favorite View the author
All Replies
2 / 2
To page
joo
deepin
2020-10-18 05:31
#21
就连我们的军人都要努力学一点英语:Put down your gun.
Reply View the author
lookfor
deepin
2020-10-18 15:54
#22
代码混淆技巧
Reply View the author
Comments
haohaohao
2020-10-18 19:49
中英兼容有深度,全英文就好理解了?
sksweet
deepin
2020-10-18 17:08
#23
别希望了,这根本不是英语的问题。
Reply View the author
mcucore
deepin
2020-10-20 00:29
#24
https://bbs.deepin.org/post/203528
提出这些概念的人,如果不是外行,那么,要不然是搞圈钱营销的(骗钱)人,要不然是心地很坏的人(就跟口罩 ...

兄弟,口罩上那条铁丝是为了鼻子部位更贴合不漏气!
Reply View the author
lookfor
deepin
2020-10-26 06:18
#25
本帖最后由 lookfor 于 2020-10-25 22:38 编辑

中文文档比较重要

保存为 按字数插入换行符.go
  1. package main

  2. import (
  3.         "bufio"
  4.         "io"
  5.         "log"
  6.         "os"
  7. )

  8. var source_dir = "/home/her/a.txt"
  9. var dest_dir = "/home/her/c.txt"

  10. func main() {
  11.         按字数插入换行符(source_dir,dest_dir,10)
  12. }

  13. func 按字数插入换行符(dir1 string,dir2 string,len int) {
  14.         f1, err := os.Open(dir1)
  15.         f2, err := os.OpenFile(dir2,os.O_CREATE | os.O_RDWR, 0644)

  16.         if err != nil {
  17.                 panic(err)
  18.         }
  19.         defer f1.Close()

  20.         //fmt.Println(reflect.TypeOf(scanner))

  21.         scanner := bufio.NewReader(f1)
  22.         w := bufio.NewWriter(f2)

  23.         for {

  24.                 c1, _, err := scanner.ReadRune()
  25.                 if !(err == io.EOF) {
  26.                         w.WriteRune(c1)
  27.                 } else {
  28.                         break
  29.                 }


  30.                 for i := 0; i < len; i++ {
  31.                         c, _, err := scanner.ReadRune()
  32.                         //        fmt.Printf("%c", c)
  33.                         if !(err == io.EOF){
  34.                                 w.WriteRune(c)
  35.                         }

  36.                 }
  37.                 //println("")
  38.                 w.WriteString("\n")

  39.         }
  40.         err = w.Flush()
  41.         if err != nil {
  42.                 log.Println("flush error :", err)
  43.         }

  44.         f2.Close()
  45.         f1.Close()

  46. }


Copy the Code
Reply View the author
ruieapples
deepin
2020-10-26 06:46
#26
https://bbs.deepin.org/post/203528
这个降低学习曲线同时也拖慢开发进度,要多敲击很多键盘.

开发的门槛,一直都不是在英文上面.

照这个逻辑,五十年后汉语消失了。
Reply View the author
五分皮
deepin
2020-10-26 07:07
#27

这是真牛啊
Reply View the author
叶落随风
deepin
2020-10-26 07:28
#28
不如说让人用中文描述需求,能自动生成代码,而且能实现需求才是厉害。
Reply View the author
ghostry
deepin
2020-10-26 16:58
#29
https://bbs.deepin.org/post/203528
照这个逻辑,五十年后汉语消失了。

不能这么说, 在人类表达方面,汉字优势很大.

以后发展趋势是给电脑说英语,给人说汉语.
Reply View the author
盘灶车站
deepin
2020-10-26 19:42
#30
https://bbs.deepin.org/post/203528
中文编程软件 不适合国际化使用

大家好,这是第一期 《Linux 中国社区大佬面对面》,这次有幸能够邀请到 o ...

楼主说是中文,不是说汉字,所以说如果用汉语拼音也不算不合国际规范,除了声调是个麻烦,当然,我总体同意你的说法,因为真正用上了,汉语拼音编程也不一定好,人们会自然而然地先在脑海中转化为汉字再继续干活儿。
Reply View the author
小小爬窗虎
deepin
2020-10-26 19:46
#31
中文不太方便于国际交流哟,中文歧义比较多。
Reply View the author
luming
deepin
2020-10-26 19:47
#32
编程需要很多能力,其中英文只是其中最简单的一种能力而且对英语掌握要求并不高,如果这么简单的事情搞不定,其实不太适合编程,就好像小学数学学不明白不适合编程一样。
Reply View the author
小小爬窗虎
deepin
2020-10-26 19:47
#33
https://bbs.deepin.org/post/203528
关键不在于编程语言

请一问,你的这些配置信息是如何弄上去的?好高级哦,我想试试
Reply View the author
2 / 2
To page