![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 73
IMjc
这个作者很懒,什么都没留下…
展开
-
Python笔记
一:基础知识:1.输入:x = input("x: ")2.if语句:if 1==1: print'One equals one'3.幂运算:2**3 = 8 ——> pow(2,3)4.绝对值:abs(-1) ——> 15.四舍五入:round(1.0/2.0) ——> 1.06.模块,数学函数:import math ->mat原创 2013-08-14 23:04:30 · 710 阅读 · 0 评论 -
Python基础教程(第2版)练习代码
代码清单2-1#!/usr/bin/python#-*- coding:utf-8 -*-# 根据给定的年月日以数字形式打印出日期months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'Septemb转载 2013-08-15 00:03:31 · 1688 阅读 · 0 评论