python学习笔记
文章平均质量分 80
随行之旅
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
第1章 python 打印输出实战
打印输出 几个实战例子1、实战例子:print("Game Over")2、实战例子:print("我喜欢吃的冰淇淋的名字是和路雪")3、实战例子:print("人生的最大快乐,是自己的劳动得到了成果.")print("谢觉哉")4、实战例子:print("我的名字是strom")input("请按回车结束")原创 2016-02-12 15:44:23 · 485 阅读 · 0 评论 -
第2章 python实战例子
1、实战例子:print("Program 'Game Over' 2.0") #字符串输出print("Same","message","as before") #打印输出多个值print("Just", #打印输出多个值,这样输出更好 "a bit", "b原创 2016-02-12 16:03:31 · 607 阅读 · 0 评论 -
第3章 python实战例子 第一节
第3章1、实战例子#Craps Roller#演示随机数的生成import random #载入随机数模块#生成1到6之间的随机数die1 = random.randint(1,6) #randint()函数是用来产生随机数die2 = random.randrange(6) + 1 #randrange()函数是原创 2016-02-15 18:23:43 · 617 阅读 · 0 评论 -
python系统编程第1节
python系统编程第1节1、#使用print命令查看帮助文档>>> print(sys.__doc__)This module provides access to some objects used or maintained by theinterpreter and to functions that interact strongly with the interpre...原创 2018-03-18 11:29:27 · 666 阅读 · 0 评论 -
python系统编程第2节
python系统编程第2节1、# open函数和os.popen函数的区别C:\>python Python 3.6.5rc1 (v3.6.5rc1:f03c5148cf, M...原创 2018-03-18 13:34:12 · 325 阅读 · 0 评论 -
python系统编程第2节(补充例子)
实验例子:os.popen 是什么类型的(object对象类型)>>> I = os.popen('dir /B *.py') >>> I ...原创 2018-03-18 13:57:27 · 298 阅读 · 1 评论 -
python脚本运行上下行第1节
python脚本运行上下行第1节1、#os.getcwd和sys.path 打印模块的搜索路径C:\Windows\System32>type whereami.py #!/usr/bin/env pythonimport o...原创 2018-03-18 19:28:39 · 743 阅读 · 0 评论
分享