- 博客(4)
- 收藏
- 关注
原创 python中print()内连接字符串与非字符串的4种方法
一、逗号字符串与非字符串间仅以简单的,连接即可。for n in range (3): print('The squre of', n , 'is', n*n )print('done')#The squre of 0 is 0#The squre of 1 is 1#The squre of 2 is 4#done二、转换符 str()将非字符串转为字符串并以+连接即可。for n in range (3): print('The squre of '+ str
2021-03-25 12:41:09 2902
原创 python变量值互换
进行变量互换在python中很简单:m,n=1,2print(m,n) # 1, 2m,n=n,mprint(m,n) # 2, 1
2021-03-16 13:03:42 309
原创 python安装aip包
1. 出错需要进行文字识别,所以要安装aip包。但是无法安装,cmd出错如下:C:\Users\Administrator>python -m pip install aipDefaulting to user installation because normal site-packages is not writeableLooking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleERROR: Could not find a
2021-03-15 20:24:58 13317 3
原创 python安装numpy包
笔记:python安装numpy1 下载所需要的版本2 在cmd中安装欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入下载所需版本CMD安装1 下载所需要的版本1 链接: pip官网nu
2021-03-10 17:06:23 1590 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人