打开设置
搜索Deployment
在弹出的信息框中添加服务器信息
确认保存后
选择后就出现了之前保存的服务器信息了
...
yekong
4周前 (01-29) 64℃
0喜欢
如果项目中包含 node_modules 目录,会使 PHPStorm 卡得很慢,PHPStorm 在进行大量的扫描工作。在设置中过滤掉对应的目录就可以了
...
yekong
1个月前 (01-18) 91℃
1喜欢
...
yekong
1个月前 (01-14) 92℃
0喜欢
工具 n
安装
npm install -g n
使用
使用sudo 安装 nodejs
sudo n latest
切换node版本
n
...
yekong
1个月前 (01-13) 85℃
0喜欢
创建分支
git branch fenzhiname
切换分支
git checkout fenzhiname
...
yekong
1个月前 (01-12) 116℃
0喜欢
原始类型
目标类型
函数
举例
列表
集合
set
New_set=set([1,2,3,4,5])
列表
元组
tuple
New_tuple=tuple([1,2,3,4])
元组
集合
set
new_set=set((1,2,3,4))
元组
列...
yekong
2个月前 (01-07) 94℃
0喜欢
self是类函数中必传的参数,必须放在第一个参数位置
self是一个对象,他代表实例化变量自身
self可以直接通过点来定义一个类变量
self中的变量与含有self参数的函数可以在类中农的任何一个函数内随意调用
非拿书内定义的便利朗在定义的时候不能用self
...
yekong
2个月前 (01-07) 90℃
0喜欢
return
def add(a, b):
c = a + b
return c
print(add(1, 2))
结果
3
...
yekong
2个月前 (01-07) 82℃
0喜欢
def
def say_hello():
print('hello word')
say_hello()
...
yekong
2个月前 (01-07) 87℃
0喜欢
比特类型
二进制的数据流--bytes
一种特殊的字符串
字符串前+b标记
bt = b'hello word'
print(type(bt))
结果
<class 'bytes'>
字符串转bytes的函数
encode
将字符串类...
yekong
2个月前 (01-07) 98℃
0喜欢