摘要:
from sys import argv script, first, second, third = argv print("The script is called:", script) print("Your first variable is:", first) print("Your se 阅读全文
摘要:
编写一个名为 collatz()的函数: 它有一个名为 number 的参数。如果参数是偶数,那么 collatz()就打印出 number // 2,并返回该值。如果 number 是奇数,collatz()就输出并返回 3 * number + 1。然后编写一个程序,让用户输入一个整数,并不断对 阅读全文