<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>参数 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E5%8F%82%E6%95%B0/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Thu, 25 Aug 2022 10:20:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>React Router v6后如何在Component中获取参数</title>
		<link>https://www.coder4.com/archives/7771</link>
					<comments>https://www.coder4.com/archives/7771#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 25 Aug 2022 10:19:56 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[React Router]]></category>
		<category><![CDATA[v6]]></category>
		<category><![CDATA[参数]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=7771</guid>

					<description><![CDATA[答案：试过各种方案，都很复杂，不行，只能用hook。 除了把Component改造成FC，还有个方案是自己包一层FC： MyWrapper： import { useParams } from 'react-router-dom'; import YourComponent from './YourComponent '; function MyWrapper() { const { id } = useParams(); return ([......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/7771/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Go解析命令行参数(简单版本)</title>
		<link>https://www.coder4.com/archives/7204</link>
					<comments>https://www.coder4.com/archives/7204#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 09 Feb 2021 08:39:59 +0000</pubDate>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[命令行参数]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=7204</guid>

					<description><![CDATA[// Check Args if len(os.Args) != 2 { fmt.Println("Usage xxx &#60;arg1&#62; &#60;arg2&#62;") return } arg1 := os.Args[1] arg1 := os.Args[2] &#160;[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/7204/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Go使用vscode追加命令行参数</title>
		<link>https://www.coder4.com/archives/7186</link>
					<comments>https://www.coder4.com/archives/7186#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 06 Feb 2021 16:41:57 +0000</pubDate>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[vscode]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[追加]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=7186</guid>

					<description><![CDATA[Run -&#62; Add Configuration -&#62; Launch file，生成launch.json 添加参数 "externalConsole": true, "args": ["-n","../../test.text"] &#160;[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/7186/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python中使用 词典+可变参数 简化 初始化+配置 工作</title>
		<link>https://www.coder4.com/archives/4431</link>
					<comments>https://www.coder4.com/archives/4431#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 17 Feb 2015 02:54:16 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[dict]]></category>
		<category><![CDATA[初始化]]></category>
		<category><![CDATA[参数]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4431</guid>

					<description><![CDATA[在Python中，是支持可变长参数，甚至词典参数的，具体见 《Python中函数的参数传递与可变长参数》 而使用词典参数的方式，可以让我们节省很多不必要的初始化工作。 以初始化MySQL的conn为例： Before： # App Config DB_HOST = "localhost" DB_PORT = 3306 DB_NAME = "db" DB_USER = "coder4" DB_PASS = "password" # Init conn sel[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4431/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python中函数的参数传递与可变长参数</title>
		<link>https://www.coder4.com/archives/4407</link>
					<comments>https://www.coder4.com/archives/4407#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 09 Feb 2015 04:43:47 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[变长]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4407</guid>

					<description><![CDATA[转载自：Python中函数的参数传递与可变长参数 1.Python中也有像C++一样的默认缺省函数 def foo(text,num=0): print text,num foo("asd") #asd 0 foo("def",100) #def 100 定义有默认参数的函数时，这些默认值参数位置必须都在非默认值参数后面。 调用时提供默认值参数值时，使用提供的值，否则使用默认值。 2.Python可以根据参数名传参数 def foo(ip,port)[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4407/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python中getopt的使用(管理命令行参数)</title>
		<link>https://www.coder4.com/archives/4000</link>
					<comments>https://www.coder4.com/archives/4000#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 18 Oct 2013 11:27:11 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[getopt]]></category>
		<category><![CDATA[参数]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4000</guid>

					<description><![CDATA[转载自：http://blog.csdn.net/tianzhu123/article/details/7655499 python中 getopt 模块，该模块是专门用来处理命令行参数的。 函数getopt(args, shortopts, longopts = []) 参数args就是命令行传入的，在python中一般是sys.argv[1:] 参数分为长短两种： shortopts 短格式 (-) longopts 长格式(--) 例如下述，第1行是短，第[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4000/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第10章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1564</link>
					<comments>https://www.coder4.com/archives/1564#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 20 May 2011 12:12:27 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[第10章]]></category>
		<category><![CDATA[解析器]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1564</guid>

					<description><![CDATA[1、python解析器的参数： -i 当程序执行完毕后，进入交互模式。 -O 优化模式 -OO 进一步优化模式 -v 详细现实 -x 跳过py文件的第一行 2、另外，python会解析一些环境变量，例如： PYTHONPATH 模块搜索的路径，会被插入到 sys.path PYTHONIOENCODING 对于stdin、stdout和stdout的方式？ PYTHONOPTIMIZE -O参数 3、当在命令行只输入python，不加任何py文件时，进入交互模式。&#038;g[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1564/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
