摘要: from calendar import * # year = int(input("Please Enter Year:")) year = 2024 date = calendar(year,2,1,6,5)#year, month abbr num, row distance, column 阅读全文
posted @ 2024-07-18 00:45 million_yh 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Tuples Exercise 1: Revise a previous program as follows: Read and parse the “From” lines andpull out the addresses from the line. Count the number of 阅读全文
posted @ 2024-03-31 12:03 million_yh 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Below contents are generate by ChatGpt: Time complexity is an important metric for measuring algorithm performance, describing the relationship betwee 阅读全文
posted @ 2024-03-28 13:17 million_yh 阅读(6) 评论(0) 推荐(0) 编辑
摘要: def GCD_brute_force(a,b): best = 0 for d in range(1,min(a,b)+1): if (a%d==0 and b%d==0): best = d return best def GCD_divide_loop(a,b): while b!=0: a, 阅读全文
posted @ 2024-03-28 12:44 million_yh 阅读(4) 评论(0) 推荐(0) 编辑
摘要: # 1.Recursion slow def fibonacci_recursion(n): if n <= 1: return n else: return fibonacci_recursion(n-1) + fibonacci_recursion(n-2) # 2.List save ever 阅读全文
posted @ 2024-03-28 12:02 million_yh 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum easy Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assu 阅读全文
posted @ 2024-03-27 23:02 million_yh 阅读(6) 评论(0) 推荐(0) 编辑
摘要: IC design时,有的公司是在linux环境下进行,虽然很多推荐用vim/gvim进行coding,但是在linux vscode下coding也很多,因为vscode插件很多,看个人习惯吧,我喜欢在vscode下Coding。另外FPGA开发一般也就在windows环境下进行,所以也可以用Vs 阅读全文
posted @ 2024-03-12 23:52 million_yh 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 在vscode安装一个插件时,需要用到make工具,因此安装make,虽然根据 https://zhuanlan.zhihu.com/p/630244738 可以在 https://gnuwin32.sourceforge.net/packages/make.htm直接下载编译好的windows下的 阅读全文
posted @ 2024-03-12 23:45 million_yh 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 参数名称 说明 默认值 --column_limit 目标行长度限制,用于指定格式化后的代码每行的最大字符数 100 --indentation_spaces 每个缩进级别增加的空格数 2 --line_break_penalty 每引入一行换行符的惩罚值 2 --over_column_limit 阅读全文
posted @ 2024-03-11 22:38 million_yh 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1.看工程路径是否有非法名称,如中文、空格、等特殊字符,标准路径是只有字母数字下划线。 2.内存是否足够,这个一般没啥问题 3.最关键的也是最不容易被发现的,在launch时会让你选 number of jobs数字,一般用默认就好了,我手贱改成了最大32,结果就发生了闪退的问题,等我改回来发现不闪 阅读全文
posted @ 2024-03-08 16:27 million_yh 阅读(371) 评论(0) 推荐(0) 编辑