
编程语言
whp1920
这个作者很懒,什么都没留下…
展开
-
Python入门之命令符
使用文本编辑器输出:hello,world程序如下:#!/usr/bin/env python#-*- coding:utf-8 -*-# Filename : helloworld.pyprint 'Hello World'——注释,后面的内容为注释。#!——组织行,作用是告诉系统使用何种解释器执行程序。...原创 2019-05-06 15:03:53 · 382 阅读 · 0 评论 -
windows 下 python 开发环境安装步骤
上python 官网 https://www.python.org/ -> downloads -> windows 下载 latest 版本,因为是windows安装,我选择executable installer.原创 2019-05-06 16:42:53 · 332 阅读 · 0 评论 -
anaconda+pyqt5+eric6开发环境安装
一、首先下载所需文件放在一个文件夹内。下载地址:1: https://repo.anaconda.com/archive/Anaconda3-2019.03-Windows-x86_64.exe2:https://files.pythonhosted.org/packages/f4/2c/d59dc21d5464f4bef3d58a1a1670a58ed14989f4642f6cf4ef8...原创 2019-05-07 14:29:03 · 664 阅读 · 0 评论 -
Python入门之内置函数
abs(x) 返回一个数的绝对值。all(iterable) 如果 iterable 的所有元素为真(或迭代器为空),返回 True 。>>> all([-1,0,1])Falseany(iterable) 如果iterable的任一元素为真则返回True。>>> all([-1,0,1])Trueascii(object) ...原创 2019-05-28 14:04:29 · 150 阅读 · 0 评论 -
Python 练习之餐厅点菜
源代码如下:##2019-05-31##pythonavailable_menus = ('french fries','chicken wings','hamburger', 'egg tart','chicken nuggets')order_dishes = []order = input("please place the order: ")if order == 'no,t...原创 2019-05-31 11:02:02 · 7546 阅读 · 0 评论 -
Python入门之常用函数
title() 函数。返回"标题化"的字符串,就是说所有单词的首个字母转化为大写,其余字母均为小写。str.title()upper() / lower() 函数。返回全部转为大写/小写字母的字符串。str.upper()strip() 函数。删除字符串首末尾的空白。lstrip() 删除字符串首端的空白,rstrip() 删除字符串末尾的空白。str.strip()...原创 2019-05-28 16:51:40 · 246 阅读 · 0 评论 -
python 学习笔记之小技巧
表示列表的最后一个元素可以用 name[-1] 表示。以此类推 [-2] 表示倒数第二个元素。。。原创 2019-06-03 18:03:45 · 242 阅读 · 0 评论