# 任务一: 向文件输出“奋斗成就更好的你”
fp='test.txt'
with open(fp,'w',encoding='utf-8') as wfile:
wfile.write('奋斗成就更好的你!')
# 任务二: 输出北京天气预报
print('星期四','今天')
print('------------------------------------')
print('08时 ','11时 ','14时 ','17时 ','20时 ','23时 ')
print
# 任务一: 向文件输出“奋斗成就更好的你”
fp='test.txt'
with open(fp,'w',encoding='utf-8') as wfile:
wfile.write('奋斗成就更好的你!')
# 任务二: 输出北京天气预报
print('星期四','今天')
print('------------------------------------')
print('08时 ','11时 ','14时 ','17时 ','20时 ','23时 ')
print