首页
学习
活动
专区
圈层
工具
发布
综合排序最热优先最新优先
时间不限
Python3教程——5、Python3
和小名一起学Python Python3教程——5、Python3 PyCharm使用技巧常用快捷键 一、Pycharm常用快捷键 有颜色的为很常用,或不易发现 编辑类: Ctrl + Space 基本的代码完成
py3study
2020-01-09
2.6K0
标签:
python3 软连接_python3哪个版本好用
在ubuntu下面发现pip的默认版本指向的是python3.6,而因项目需要利用Python2.7.
全栈程序员站长
2022-09-27
1.5K0
标签:
Python3 字典
/usr/bin/python3 dict = {'Name': 'Runoob', 'Age': 7, 'Class': 'First'} print ("dict['Name']: ", dict /usr/bin/python3 dict = {'Name': 'Runoob', 'Age': 7, 'Class': 'First'} print ("dict['Alice']: ", dict /usr/bin/python3 dict = {'Name': 'Runoob', 'Age': 7, 'Class': 'First'} dict['Age'] = 8 # 更新 Age dict /usr/bin/python3 dict = {'Name': 'Runoob', 'Age': 7, 'Class': 'First'} del dict['Name'] # 删除键 'Name /usr/bin/python3 dict = {'Name': 'Runoob', 'Age': 7, 'Name': '小菜鸟'} print ("dict['Name']: ", dict['
AlexZhang
2021-12-02
1.6K0
标签:
python3 TypeError: a
运行telnetlib的时候报错:TypeError: a bytes-like object is required, not ‘str’,原因是因为python2和python3的版本的差异。 在python2中可正常运行,而python3最重要的新特性也是对文本和二进制数据做了更清晰的区分。文本用unicode编码,为str类型,二进制数据则为bytes类型。
py3study
2020-01-03
1.5K0
标签:
Python3函数
Python3 函数 函数文字定义:函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段;函数能提高应用的模块性,和代码的重复利用率。 /usr/bin/python3 import random def choose_num(s,e=10): num = random.randint(s,e) return num /usr/bin/python3 def choose_num(s=10,e): # 默认值放前边,报错了。 /usr/bin/python3 def add(x,y): """Add x and y together. /usr/bin/python3 def add(x:int, y:'这个参数随便')-> int: """Add x and y together."""
py3study
2020-01-03
1.6K0
标签:
python3 笔记
#age=int(input('请输入您的年龄:')) #print ( age-1)
py3study
2020-01-03
1.2K0
标签:
python3 教程
/usr/bin/python3 print("Hello, World!"); 你可以将以上的代码保存在hello.py文件中使用python命令执行脚本文件。 $ python3 hello.py 以上命令输出结果为: hello, world!
py3study
2020-01-03
1K0
标签:
python3 集合
集合: 数学上,把set称作由不同的元素组成的集合,集合(set)的成员通常被称做集合元素。 集合对象是一组无序排列的可哈希的值。 集合有两种类型: 1、可变集合set 2、不可变集合frozenset 特点: 1、值不可以重复 创建可变集合set >>> s1 = set('hello') >>> s1 {'h', 'l', 'o', 'e'} #值不可以重复,所以两个L合并成一个L 创建不可变
py3study
2020-01-06
1.1K0
标签:
Python3 列表
Python3 列表 列表是Python中最基本的数据结构,也是最常用的Python数据类型,它可以作为一个方括号内的逗号分隔值出现。
端碗吹水
2020-09-23
1.2K0
标签:
python3 介绍
TIOBE上python排在第三,而且还在上升。 Java 占据了世界上绝大部分电商、全融、通信等服务端应用开发,而C占据了世界上绝大部分贴近操作系统的硬件编程。
用户5760343
2019-12-12
9500
标签:
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档