1 Star 0 Fork 0

TestDev/PythonTest

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Python_File.py 549 Bytes
一键复制 编辑 原始数据 按行查看 历史
TestDev 提交于 2019-02-15 16:22 +08:00 . 文件写入的案例增加
import os
import platform
from Config.Properties import Properties
f = open("/Idea/PythonTest/txt")
s = f.readlines()
for line in s:
print(line.strip())
with open("/Idea/PythonTest/txt", "a")as w:
w.write("\nni nainai d chuizi ")
path1 = os.path.abspath('..') + "/txt"
f = open(path1)
s = f.readlines()
for line in s:
print(line.strip())
# Windows will be : (32bit, WindowsPE)
# Linux will be : (32bit, ELF)
print(platform.system())
property = Properties('jdbc.properties', True)
pp = property.getProperties()
print(pp.get("driver"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/testdevops/PythonTest.git
git@gitee.com:testdevops/PythonTest.git
testdevops
PythonTest
PythonTest
master

搜索帮助