![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
whh_java菜鸟
这个作者很懒,什么都没留下…
展开
-
python学习第三天
今天突然想学python,接着上回import os 这个相当于java的io包os.path.isdir(arg) 判断文件夹len(arg)字符串的长度或者集合的长度os.listdir(arg) 返回该目录下的所有文件名os.rmdir(arg) 删除文件夹os.remove(arg)删除文件for i in items:相当于java的for循环...原创 2020-05-14 00:41:57 · 134 阅读 · 0 评论 -
python学习第二天
感觉看视频更适合自己 所以去b站找了视频看学习了下py的while,if-else ,coutinue,breaktype() int() str()count = 0.0result = 0while count < 100: count += 1 result += count if result %2 == 1: print(resul...原创 2020-01-15 23:40:10 · 87 阅读 · 0 评论 -
python学习第一天
学习资源来源于廖雪峰的官方网站第一章 第一个python小程序第一节 使用文本编辑器下载vsCode 然后输入print(“hello world”)并保存为hello.py文件在终端跳转到对应目录 并执行python3 hello.py命令 就得到了 打印结果也可以编辑文件加上注释#!/usr/bin/env python3 例如下图然后给予文件权限 chmod a+x hel...原创 2019-11-27 08:12:09 · 126 阅读 · 0 评论 -
安装python
安装homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装python3brew install python3python3 --version 就能看到版本了python3的版本了编辑~目录下的.bash_profile文件 查看路径...原创 2019-11-26 23:25:02 · 123 阅读 · 0 评论 -
定个小目标 学习python
一个月内学完基础二个月内学会爬虫3个月内学会运维脚本4个月内学会web开发原创 2019-11-26 23:08:53 · 113 阅读 · 0 评论