/ (косая черта) обозначает только позиционные параметры. Аргументы перед ней должны передаваться позиционно и не могут использоваться как ключевые аргументы.
Когда мы вызываем:
print(greet("Alice"))
происходит следующее:
— "Alice" передается как позиционный аргумент name. — greeting не передан явно, поэтому используется значение по умолчанию "Hello". — Формируется строка: "Hello, Alice!"
/ (косая черта) обозначает только позиционные параметры. Аргументы перед ней должны передаваться позиционно и не могут использоваться как ключевые аргументы.
Когда мы вызываем:
print(greet("Alice"))
происходит следующее:
— "Alice" передается как позиционный аргумент name. — greeting не передан явно, поэтому используется значение по умолчанию "Hello". — Формируется строка: "Hello, Alice!"
BY Python: задачки и вопросы
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”
The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.