会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cshu21
博客园
首页
新随笔
联系
订阅
管理
2023年7月31日
在python文件操作中使用writelines()函数却报write()函数使用错误
摘要: 代码是这样的: 1 def func1(): 2 file = open("test.txt", "a+", encoding="utf-8") 3 list1 = [("20", "10")] 4 list2 = [{"name": "Tom", "age": 20}] 5 file.writel
阅读全文
posted @ 2023-07-31 17:29 晴天_雨水
阅读(247)
评论(0)
推荐(0)
2023年7月18日
C中遇到一个诡异的死循环
摘要: 下面是其代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 int i = 0; 6 //int j = 0; 7 int arr[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; 8 for
阅读全文
posted @ 2023-07-18 17:00 晴天_雨水
阅读(41)
评论(0)
推荐(0)
公告