终端命令启动Sublime Text 3 和 VS Code
加入软连接:
1 | // 如果你是sublime 2 |
加入软连接:
1 | // 如果你是sublime 2 |
执行 git 命令后,提示信息如下:
1 | xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun |
运行如下命令:
1 | xcode-select --install |
等安装好了之后,git 就又可以用了。
如果不行可以试试下面的命令:
1 | xcode-select --reset |
1 | # coding: utf-8 |
如果想让代码中可以输入中文,必须要加上这一句。
1 | def add_function(a, b): |
Python 中定义一个函数用 def
关键字,函数没有大括号,用tab空格代表方法体。
1 | num = 100 |