我有以下问题:我有一个用python编写的旧应用程序.这个应用程序允许用户指定将执行的小python步骤,python步骤基本上是小python脚本,我称之为步骤,因为此应用程序的执行涉及其他步骤,如从命令行执行某些操作.这些python步骤作为python代码存储在xml文件中.
现在我想用C#.NET重写应用程序.做这样的事情是否有最佳实践解决方案?
我不想将python作为外部程序调用并将实际的python步骤(脚本)传递给python解释器 - 我想要内置的东西.我只是遇到了IronPython和.NET python,但我不太确定使用哪一个.我想为小脚本实现某种调试,这就是为什么调用解释器解决方案是不可接受的.
更重要的是,许多脚本已经存在.因此,我必须使用python的C#实现,它具有与python相同的语法以及与python的libs相同的内置.这甚至可能吗?
谢谢和问候Xeun
嗨,我最近习惯了moodle http://moodle.org.我想使用官方Moodle App for IOs/Android.但是我想在使用应用程序时将该语言设为德语.这是一个示例屏幕截图:

文档说我必须将mobile.php上传到我的lang/en文件夹才能自定义应用程序的语言.请参阅http://docs.moodle.org/24/en/Mobile_app#Translation(也适用于较新版本).该文件的结构类似于http://pastebin.com/5TJWZ4ue
但是,如果我将此文件上传到我的服务器,该应用程序不会更改它的语言.它仍然是英语.
我希望有更多洞察moodle的人可以帮助我.
我试图在Listview中显示包含扩展器和标头的不同组.但是,如果组仅包含1个项目,我不希望我的SecondLevel组显示标题.因为这会非常不方便.我的代码:
<Window x:Class="ListViewGrouping.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:listViewGrouping="clr-namespace:ListViewGrouping"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<listViewGrouping:GroupItemStyleSelector x:Key="groupItemStyleSelector"/>
<!-- Style for the first level GroupItem -->
<Style x:Key="FirstLevel" TargetType="{x:Type GroupItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}">
<Expander IsExpanded="True">
<Expander.Header>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Margin="3.5,0" Text="{Binding Name}" TextBlock.FontWeight="Bold"/>
<TextBlock Grid.Column="1" Margin="3.5,0" Text="Elements:"/>
<TextBlock Grid.Column="2" Margin="3.5,0" Text="{Binding ItemCount}"/>
</Grid>
</Expander.Header>
<ItemsPresenter />
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Style for the second level GroupItem -->
<Style x:Key="SecondLevel" TargetType="{x:Type GroupItem}">
<Setter Property="Template"> …Run Code Online (Sandbox Code Playgroud)