美文网首页
python-输入输出

python-输入输出

作者: 水漾涟漪penny | 来源:发表于2019-01-10 14:27 被阅读0次

#输入输出

# try:

#    a = int(input('请输入一个整数:'))

#    print(a)

# except NameError:

#    if a % 1 == 0:

#        print('整数')

#    else:

#        print('类型错误')

# except ValueError:

#    print('valueerror')

# finally:

#    print('test')

# #文件

# file= open('word.txt','r+')

# # file.write('Test test testing!')

# print(file.read())

# file.close

相关文章

网友评论

      本文标题:python-输入输出

      本文链接:https://www.haomeiwen.com/subject/eokarqtx.html