ppp
Posted lihaoweilihaowei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ppp相关的知识,希望对你有一定的参考价值。
python全栈
第一节
1.Typora a markdown的使用
1.1标题的创建
1. 可以通过鼠标点选段落,选择想要的标题
2. 也可以通过#或多个#来实现(需要在#后加空格)
1.2有序列表&无序列表
有序与无序列表都可以通过段落选项中选取使用当手动使用时需要在序号或无序号后加入空格
注意:解决列表带来的缩进问题用Shift+Tab来解决
1.3图片的插入及输出
1. 复制粘贴插入
2. 拖拽插入
注意:当需要将文件输出给他人查看时需要通过文件选项,导出PDF格式,否则将无法正常显示图片,此目的也是为了保护版权权益.
1.4表格的插入和使用
表格的插入在段落中选取,可以选择控制表格的大小.
注意:不可合并单元格,复制表格的时候不建议使用时标选中直接复制,要去找到More Actions里的复制表格进行复制.
| | | |
| ---- | ---- | ---- |
| | | |
| | | |
| | | |
1.5超链接的插入和使用
鼠标在格式中选择超链接,在[]里写提示语,()中写入提示语对用的网站网址
例子:[百度一下](www.baidu.com)
当使用者想要查看网站链接时需要Ctrl+鼠标左键单击网站网址
注意:点击网站网址时有时会有系统提醒是否准备拜访该网址,此提示出现在窗口上方.
1.6给字体加颜色
待定
1.7如何插入代码块
输入法为英文的前提下输入三个波浪键```
例子如下:
```python
python("Hello,world!")
```
注意:如果要给客户呈现代码的形式必须用代码块
2.python安装及简介
python安装地址(www.python.org)
根据要求一步步执行,尽量安装到单层目录下,方便寻找,安装完成后再cmd下输入python后,运行显示如下为正常安装成功
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604194952318-1917949279.png)
3.计算机的环境变量的设置
环境变量是为了设置一个快捷的路径给cmd识别,路径的添加严格按照文件路径为准,路径路径之间用英文输入法中的;隔开.![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195202549-1890241547.png)
4.pycharm安装及简介
安装网址https://www.jetbrains.com/
分为专业版和社区版本,专业版收费,社区版本免费,功能上有一定的差异
专业版激活破解码如下:
812LFWMRSH-ey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5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==
注意:python创建新的project时,新手需要注意暂时不要使用虚拟创建方式,同时注意解释器是否搭建成功
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195228226-1458942874.png)
第二节
1.码云账号申请及其仓库创建
https://gitee.com/登录网址,进行申请账号操作,进入企业后选择企业版,填写详细资料,加入组织,并在组织界面创建新的仓库.
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195252638-1745761477.png)
2.Git安装及测试
https://git-scm.com/网站地址,选择适用电脑的版本进行安装
安装完成后再Git界面输入:Git --version查看是否安装成功和当前版本![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195312557-580550864.png)
3.Git常用命令
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195321073-1308429988.png)
- git config --global user.name"名字"
全局设置输入一次即可
- git config --global user.email"邮箱"
全局设置输入一次即可
- git init
指第一次初始化一个文件夹,要确保此文件夹下生成.git隐藏文件以后不用再初始化了
- touch README.md(不常用)
git add README.md(不常用)
git add . (此命令常用)
add相当于一个动作,要添加动作后的名词至本地git仓库
" . "的含义是把所有此文件夹下的增删改操作都添加到本地仓库
- git commit -m "first commit"
" "号内填写备注的名字,commit在gir语法中做提交的操作,也是一个动作,
此命令意思是在所有更改或添加文件后加上备注,备注的名字可以自己选取
- git remote add origin https://gitee.com/old_boy_python_stack_23/19052823025.git
全局设置一次,如有更改可重新再git中输入
意思是上传文件引用的网址信息
- git push -u origin master
确认信息开始上传,其中-u代表制定的用户名字
4.Git以及码云使用时注意事项
- 尽量不要直接删除码云上的文件夹或文件,否则在初期学习阶段还原将会变的很费劲.
- 严格按照命令要求输入指令,注意空格的使用.
- 内容最少,但是坑很多,值得去探索
注:不要在远程仓库(码云)里删除任何东西!!!
第三节
1.pycharm的运用
1.1打开pycharm
1.2打开之后点击左上角File!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195407724-2040484649.png)
1.3点击图中所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195427429-1581346036.png)
1.4如图所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195455859-1484432185.png)
1.5如图所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195520971-1706645323.png)
1.6如图所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195549260-495847992.png)
1.7如图所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195559722-1974401997.png)
1.8如图所示!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195606863-462553542.png)
2.博客园
2.1在百度中搜索博客园,点击进入!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195623460-1794637190.png)
2.2进入之后点击注册!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195657402-1844654672.png)
2.3点击我的博客!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195730624-1020329866.png)
2.4申请博客!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195806075-2143397632.png)
2.5博客园申请过后点击新随笔!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195902084-126166298.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195906455-1790274451.png)
2.6对博客园自带的编辑器不满意可换成markdown!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195933710-1854482324.png)
3.思维导图的建立
3.1百度一下搜索 ProcessOn!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195943496-1408767680.png)
3.2点击注册!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195955682-163298168.png)
3.3登陆\\绑定!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200005656-1892197025.png)
3.4成功登陆![![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200016204-697879994.png)
第四节
1.常见的基本数据类型:
1.1int 整数
整数: 常见操作就那么几个 + - * / // 整除 % 取余 **幂次方
.bit_length() 一个数的二进制长度
例子: a = 4 # 十进制是4 二进制 是100 即4的二进制是3
!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200111809-283678125.png)
1.2bool 布尔. 判断: if while
没有操作
类型转换:把字符串转换成整数 int(str)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200422297-25450682.png)
考试能用到!
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200446776-773465976.png)
考试能用到 3 个结论!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200456497-727150712.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200506597-801655632.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200516465-1921471570.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200524775-720852819.png)
1.3str 字符串, 一般放小量的数据.
1. 字符: 单一文字符号 例如: a 李 张
2. 字符串: 有序的字符序列 ; 字符串由 ‘ ‘‘ ‘‘‘ """ 括起来的内容 索引 : 一排数字,反应第某个位置的字符,索引的下标从0开始,使用 []来获取数据 例如:
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200610533-1800037264.png)
如果没有指明方向,严格遵循从左到右!!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200643452-1526953104.png)
!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200702249-1993601202.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200724610-258323489.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200841273-762414928.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200859210-1588070030.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200915001-907444698.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200924496-138757184.png)
字符串的常用操作方法:
注: 字符串是不可变的对象,所以任何操作对原字符串是不会有任何影响的
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200953091-1590294811.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604200959119-1025629969.png)
- .upper() 全部换成大写
- .lower() 全部换成小写
- .capitalize() 大写小的转换
- .swapcase() 大小写互相转换 包含的内容大于 capitalize
- .center() 居中
- !![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201009085-1599812142.png)
- .strip() 去除两端空格或者空白部分 当括弧里面有内容时,指定去除两端的括弧里的内容.![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201024865-2142196643.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201031443-248929437.png)
- .split 切割, 刀有多宽,就会损失掉多少!![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201041480-1720776729.png)
\\n 换行![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201050976-1383002819.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201059576-1549608517.png)
- .replace(old, new) 字符串替换
- 格式化输出![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604201112337-59938631.png)
1.4list 列表. 可以存放大量的数据.
1.5dict 字典. 以key:value的形式存储数据.
1.6set 集合(数学)
1.7tuple 元祖. 类似于list,但是 tuple是不可变得.![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195831023-1912957808.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195848260-707073586.png)
![](https://img2018.cnblogs.com/blog/1703517/201906/1703517-20190604195852132-254211874.png)
以上是关于ppp的主要内容,如果未能解决你的问题,请参考以下文章
*++*++ppp,*++pp[1],*++(*(1+ppp)有啥具体的区别吗?(C/C++指针问题)
计算机网络(谢希仁 第七版) 第三章(数据链路层)-- 3.2 点对点协议PPP(PPP协议的特点 & PPP协议的帧格式 & PPP协议的工作状态)