摘要: 【练习11】计算 int, float, double 和 char 字节大小 0. 题目: 计算 int, float, double 和 char 字节大小 1. 分析: 使用 sizeof 操作符计算int, float, double 和 char四种变量字节大小。 sizeof 是单目操作 阅读全文
posted @ 2021-03-08 20:56 youcans 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 【练习1】输出 "Hello, World!" 0. 题目: 输出 "Hello, World!" 1. 分析: 使用 printf() 输出 "Hello, World!"。 2. 程序: #include <stdio.h> int main() { printf("Hello, World!" 阅读全文
posted @ 2021-03-08 17:02 youcans 阅读(4126) 评论(0) 推荐(0) 编辑
摘要: 练习91: 题目: 时间函数举例1。 程序: if __name__ == '__main__': import time print (time.ctime(time.time())) print (time.asctime(time.localtime(time.time()))) print 阅读全文
posted @ 2021-03-08 16:59 youcans 阅读(255) 评论(0) 推荐(0) 编辑