
python
iteye_10019
这个作者很懒,什么都没留下…
展开
-
Python基础
1.提示用户输入 input('Enter an integer:') 2.条件判断语句 number = 23 guess = int(input('Enter an integer')) if guess == number: print('ok') print('o,year') elif guess > ...原创 2012-01-21 09:47:21 · 114 阅读 · 0 评论 -
python中文本文件处理
1.文本文件的读取 import fileinput print("-----start-----") file = open("D:\\test.txt", encoding="utf-8") #打印出文件中的每一行数据 isreadable = True while isreadable == True : data = file.readline() ...原创 2012-01-24 11:08:50 · 152 阅读 · 0 评论