📄 pyslice.java
字号:
// Copyright (c) Corporation for National Research Initiativespackage org.python.core;/** * A python slice object. */public class PySlice extends PyObject { public PyObject start, stop, step; public static PyClass __class__; public PySlice(PyObject start, PyObject stop, PyObject step) { super(__class__); if (start == null) start = Py.None; if (stop == null) stop = Py.None; if (step == null) step = Py.One; this.start = start; this.stop = stop; this.step = step; } public PyString __str__() { return new PyString(start.__repr__()+":"+stop.__repr__()+":"+ step.__repr__()); } public PyString __repr__() { return new PyString("slice("+start.__repr__()+", "+ stop.__repr__()+", "+ step.__repr__()+")"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -